Nano keyboard shortcuts

Nano

Zeynel Abidin Öztürk -
18 months ago
- Shortcuts
Ctrl + O

Write the current file to disk

or F3
Ctrl + X

Close the current file buffer / Exit from Nano

or F2
Ctrl + R

Insert another file into the current one

or F5
Alt + <

Switch to the previous file buffer

or Alt + ,
Alt + >

Switch to the next file buffer

or Alt + .
Alt + D

Count the number of words, lines, and characters

Ctrl + L

Refresh (redraw) the current screen

Alt + U

Undo the last operation

Alt + E

Redo the last undone operation

Alt + }

Indent the current line

Alt + {

Unindent the current line

Alt + ^

Copy the current line and store it in the cut buffer

or Alt + 6
Ctrl + K

Cut the current line and store it in the cut buffer

or F9
Ctrl + U

Uncut from the cut buffer into the current line

Alt + V

Insert the next keystroke verbatim

Ctrl + I

Insert a tab at the cursor position

Ctrl + M

Insert a newline at the cursor position

Ctrl + D

Delete the character under the cursor

Ctrl + H

Delete the character to the left of the cursor

Alt + T

Cut from the cursor position to the end of the file

Ctrl + W

Search for a string or a regular expression

or F6
F16

Repeat last search

or Alt + W
Ctrl + T

Invoke the spell checker, if available

or F12 Ctrl + T
Ctrl + \

Replace a string or a regular expression

or F14
or Alt + R
Ctrl + J

Justify the current paragraph

or F4
Alt + J

Justify the entire file

Ctrl + Y

Move to the previous screen

or F7
Ctrl + V

Move to the next screen

or F8
Ctrl + B

Go back one character

Ctrl + F

Go forward one character

Alt + Space

Go back one word

Ctrl + Space

go forward one word

Ctrl + _

Go to line and column number

or F13
or Alt + G
Ctrl + ^

Mark text at the cursor position

or F15
or Alt + A
Ctrl + C

Display the position of the cursor

or F11
Ctrl + A

Move to the beginning of the current line

Ctrl + E

Move to the end of the current line

Alt + (

Move to the beginning of the current paragraph

or Alt + 9
Alt + )

Move to the end of the current paragraph

or Alt + 0
Alt + \

Move to the first line of the file

or Alt + |
Alt + /

Move to the last line of the file

or Alt + ?
M + ]

Move to the matching bracket

Alt + -

Scroll up one line without scrolling the cursor

or Alt + _
Alt + +

Scroll down one line without scrolling the cursor

or Alt + =
Alt + X

Help mode enable/disable

Alt + C

Constant cursor position display enable/disable

Alt + O

Use of one more line for editing enable/disable

Alt + S

Smooth scrolling enable/disable

Alt + $

Soft wrapping of overlong lines enable/disable

Alt + P

Whitespace display enable/disable

Alt + Y

Colour syntax highlighting enable/disable

Alt + H

Smart home key enable/disable

Alt + I

Auto indent enable/disable

Alt + K

Cut to end enable/disable

Alt + L

Long line wrapping enable/disable

Alt + Q

Conversion of typed tabs to spaces enable/disable

Alt + B

Backup files enable/disable

Alt + F

Multiple file buffers enable/disable

Alt + M

Mouse support enable/disable

Alt + N

No conversion from DOS/Mac format enable/disable

Alt + Z

Suspension enable/disable


Share this page on:

Program information

Program name: Nano Nano (Text editing)

Nano is a text editor based on Pico text editor. Unlike Pico, Nano is licensed under the GNU General Public License. Released as freeware by Chris Allegretta in 1999, Nano became part of the GNU Project in 2001.

Web page: nano-editor.org

Last update: 11 Nov 2019

Shortcut count: 87

How easy to press shortcuts: 75%

Platform detected: Windows or Linux (not macOS)

Similar programs



Advertisement

Join our mailing list!

Your email is kept private and we don't spam.