File: ~/.nanorc
Fallback editor — simpler than Vim, better for quick edits when muscle memory fails.
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
| 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) |