micro

micro

TLDR

Open a file

>_ micro [file]
copy

Cut the entire line

>_ Ctrl + K
copy

Search for a pattern in the file (press Ctrl + N/Ctrl + P to go to next/previous match)

>_ Ctrl + F "[pattern]" <Enter>
copy

Execute a command

>_ Ctrl + E [command] <Enter>
copy

Perform a substitution in the whole file

>_ Ctrl + E replaceall "[pattern]" "[replacement]" <Enter>
copy

Quit

>_ Ctrl + Q
copy

Copied to clipboard
free 100$ digital ocean credit