M+A | Turn the mark on/off |
Tab | Indent marked region |
Shift+Tab | Unindent marked region |
M+N | Turn line numbers on/off |
M+P | Turn visible whitespace on/off |
M+V | Enter next keystroke verbatim |
^+L | Refresh the screen |
^+Z | Suspend nano |
Tag: Nano Cheat Sheet – Mac
^Ctrl+T | Run a spell check |
^+J | Justify paragraph or region |
M+J | Justify entire buffer |
M+B | Run a syntax check |
M+F | Run a formatter/fixer/arranger |
M+: | Start/stop recording of macro |
M+; | Replay macro |
^+H | Delete character before cursor |
^+D | Delete character under cursor |
^+Shift+Del | Delete word to the left |
^+Del | Delete word to the right |
M+Del | Delete current line |
^+C | Report cursor position |
M+D | Report word/line/char count |
^+G | Display help text |
M+G | Go to specified line |
M+] | Go to complementary bracket |
M+↑ | Scroll viewport up |
M+↓ | Scroll viewport down |
M+< | Switch to preceding buffer |
M+> | Switch to succeeding buffer |
^+Q | Start backward search |
^+W | Start forward search |
M+Q | Find next occurrence backward |
M+W | Find next occurrence forward |
M+R | Start a replacing session |
^+K | Cut current line into cutbuffer |
M+6 | Copy current line into cutbuffer |
^+U | Paste contents of cutbuffer |
M+T | Cut until end of buffer |
^+] | Complete current word |
M+3 | Comment/uncomment line/region |
M+U | Undo last action |
M+E | Redo last undone action |
^+B | One character backward |
^+F | One character forward |
^+← | One word backward |
^+→ | One word forward |
^+A | To start of line |
^+E | To end of line |
^+P | One line up |
^+N | One line down |
^+↑ | To previous block |
^+↓ | To next block |
^+Y | One page up |
^+V | One page down |
M+\ | To top of buffer |
M+/ | To end of buffer |
^+S | Save current file |
^+O | Offer to write file (“Save as”) |
^+R | Insert a file into current one |
^+X | Close buffer, exit from nano |