Note: on Mac "Alt" is "Ctrl+option"

Most Helpful!

Ctrl Key Combination

Function Key

Alt Key Combination

Description

***

^G

F1


Display the help text

***

^X

F2


Close the current file buffer / Exit from nano

***

^O

F3


Write the current file to disk


^J

F4


Justify the current paragraph


^R

F5


Insert another file into the current one

***

^W

F6


Search for a string or a regular expression

***

^Y

F7


Move to the previous screen

***

^V

F8


Move to the next screen

***

^K

F9


Cut the current line and store it in the cutbuffer

***

^U

F10


Uncut from the cutbuffer into the current line

***

^C

F11


Display the position of the cursor


^T

F12


Invoke the spell checker, if available

***

^_

F13

Alt+G

Go to line and column number

***

^\

F14

Alt+R

Replace a string or a regular expression


^^

F15

Alt+A

Mark text at the cursor position

***


F16

Alt+W

Repeat last search

***



Alt+^ or Alt+6

Copy the current line and store it in the cutbuffer




Alt+}

Indent the current line




Alt+{

Unindent the current line


^F



Move forward one character


^B



Move back one character


^Space



Move forward one word




Alt+Space

Move back one word

***

^P



Move to the previous line

***

^N



Move to the next line

***

^A



Move to the beginning of the current line

***

^E



Move to the end of the current line




Alt+( or Alt+9

Move to the beginning of the current paragraph




Alt+) or Alt+0

Move to the end of the current paragraph




Alt+\ or Alt+|

Move to the first line of the file




Alt+/ or Alt+?

Move to the last line of the file

***



Alt+]

Move to the matching bracket




Alt+- or Alt+_

Scroll up one line without scrolling the cursor




Alt++ or Alt+=

Scroll down one line without scrolling the cursor

***



Alt+< or Alt+,

Switch to the previous file buffer

***



Alt+> or Alt+.

Switch to the next file buffer




Alt+V

Insert the next keystroke verbatim


^I



Insert a tab at the cursor position


^M



Insert a newline at the cursor position


^D



Delete the character under the cursor


^H



Delete the character to the left of the cursor




Alt+T

Cut from the cursor position to the end of the file




Alt+J

Justify the entire file




Alt+D

Count the number of words, lines, and characters

***

^L



Refresh (redraw) the current screen




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+P

Whitespace display enable/disable




Alt+Y

Color 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