Site Tools


terminal:editors:nano

Nano

File: ~/.nanorc

Fallback editor — simpler than Vim, better for quick edits when muscle memory fails.

Configuration

include "/usr/share/nano/*.nanorc"  # syntax highlighting for common file types

set tabsize 4
set tabstospaces      # expand tabs to spaces
set autoindent
set nowrap            # don't soft-wrap long lines
set constantshow      # always show cursor position
set linenumbers
set mouse

set backup            # keep backup copies
set backupdir ~/.nano/backups

set matchbrackets     # highlight matching brackets
set historylog        # persist search history
set multibuffer       # open multiple files with Alt+< / Alt+>
set nohelp            # hide the bottom shortcut bar
set quickblank        # status bar messages clear after one keystroke

Key Reference

Shortcut Action
Ctrl-O Save (Write Out)
Ctrl-X Exit
Ctrl-W Search
Alt-W Search next
Ctrl-K Cut line
Ctrl-U Paste
Ctrl-G Help
Alt-< / Alt→ Previous / next buffer (multibuffer)

See Also

terminal/editors/nano.txt · Last modified: by 127.0.0.1