GNU nano is a text editor for Unix-like computing systems or operating environments using a command line interface. nano is licensed under the GNU General Public License (GPL).

60

Shortcuts

52

Matching

save current file
^
S
offer to write file ('save as')
^
O
insert a file into current one
^
R
close buffer, exit from nano
^
X
cut current line into cutbuffer
^
K
copy current line into cutbuffer
⎇
6
paste contents of cutbuffer
^
U
cut until end of buffer
⎇
T
complete current word
^
]
comment/uncomment line/region
⎇
3
undo last action
⎇
U
redo last undone action
⎇
E
start backward search
^
Q
start forward search
^
W
find next occurrence backward
⎇
Q
find next occurrence forward
⎇
W
start a replacing session
⎇
R
delete character before cursor
^
H
delete character under cursor
^
D
delete word to the left
⎇
⌫
delete word to the right
^
␡
delete current line
⎇
␡
execute some command
^
T
justify paragraph or region
^
J
justify entire buffer
⎇
J
run a syntax check
⎇
B
run a formatter/fixer/arranger
⎇
F
start/stop recording of macro
⎇
:
replay macro
⎇
;
one character backward
^
B
one character forward
^
F
one word backward
^
←
one word forward
^
→
to start of line
^
A
to end of line
^
E
one line up
^
P
one line down
^
N
to previous block
^
↑
to next block
^
↓
one page up
^
Y
one page down
^
V
to top of buffer
⎇
\
to end of buffer
⎇
/
go to specified line
⎇
G
go to complementary bracket
⎇
]
scroll viewport up
⎇
↑
scroll viewport down
⎇
↓
switch to preceding buffer
⎇
<
switch to succeeding buffer
⎇
>
report cursor position
^
C
report line/word/character count
⎇
D
display help text
^
G
turn the mark on/off
⎇
A
indent marked region
↹
unindent marked region
⇧
↹
enter next keystroke verbatim
⎇
V
turn line numbers on/off
⎇
N
turn visible whitespace on/off
⎇
P
hide or unhide the help lines
⎇
X
refresh the screen
^
L
Don't see your shortcut? Learn how to contribute.