Nano
File Handling
Shortcut |
Action |
|---|---|
|
Save current file |
|
Offer to write file (Save As) |
|
Insert a file into current one |
|
Close buffer, exit from nano |
Editing
Shortcut |
Action |
|---|---|
|
Cut current line into cutbuffer |
|
Copy current line into cutbuffer |
|
Paste contents of cutbuffer |
|
Cut until end of buffer |
|
Complete current word |
|
Comment/uncomment line/region |
|
Undo last action |
|
Redo last undone action |
Search and Replace
Shortcut |
Action |
|---|---|
|
Start backward search |
|
Start forward search |
|
Find next occurrence backward |
|
Find next occurrence forward |
|
Start a replacing session |
Deletion
Shortcut |
Action |
|---|---|
|
Delete character before cursor |
|
Delete character under cursor |
|
Delete word to the left |
|
Delete word to the right |
|
Delete current line |
Information
Shortcut |
Action |
|---|---|
|
Report cursor position |
|
Report line/word/character count |
|
Display help text |
Moving Around
Shortcut |
Action |
|---|---|
|
One character backward |
|
One character forward |
|
One word backward |
|
One word forward |
|
To start of line |
|
To end of line |
|
One line up |
|
One line down |
|
To previous block |
|
To next block |
|
One page up |
|
One page down |
|
To top of buffer |
|
To end of buffer |
Special movement
Shortcut |
Action |
|---|---|
|
Go to specified line |
|
Go to complementary bracket |
|
Scroll viewport up |
|
Scroll viewport down |
|
Switch to preceding buffer |
|
Switch to succeeding buffer |
Various
Shortcut |
Action |
|---|---|
|
Turn the mark on/off |
|
Indent marked region |
|
Unindent marked region |
|
Enter next keystroke verbatim |
|
Turn line numbers on/off |
|
Turn visible whitespace on/off |
|
Hide or unhide the help lines |
|
Refresh the screen |
Source : Overview of nano’s shortcuts