====== Nano ====== **File:** ''~/.nanorc'' Fallback editor — simpler than [[terminal:editors:vim|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:start|Terminal Editors Index]] * [[terminal:editors:vim|Vim]] * [[terminal:shell:dotfiles|Dotfiles index]] * [[terminal:start|Return to terminal]]