It's not a great editor. But I know a lot of folks just don't have the time to get comfortable with vi/vim. If that's you, and you need to be in a terminal-only situation, just use Nano. It's there. It's easy. Here are some things to make it easier. (Also, definitely grab my .nanorc and these syntax highlighting files to make your Nano experience a little less gross and bland!)
- Files
nano file.extopens (or creates) that fileCTRL+o Y ENTERsaves changesALT+>switches to next file bufferALT+<switches to previousCTRL+Xquits
- Navigation
CTRL+amoves to beginning of lineCTRL+emoves to end of lineCTRL+vgoes down one pageCTRL+ygoes up one pageALT+\to beginning of fileALT+/to the endALT+gto jump to a lineALT+]to jump to matching symbol (like vim's%)ALT+a ALT+}selects and indents that blockALT+a ALT+{selecets and outdents that block
- Operations
ALT+ato select or deselect a blockALT+a ALT+^copy that block to primary (clipboard)ALT+a CTRL+kcut to sameCTRL+kCut from cursor to the end of the lineCTRL+uUncut (paste)CTRL+wto search for a stringALT+wto repeat the searchALT+rto search and replace