# ~/.nanorc
# Personal Nano configuration for programming and general text editing.
# --- Display ---
set linenumbers
set constantshow
set softwrap
set atblanks
set mouse
# --- Editing / indentation ---
set autoindent
set tabsize 4
set smarthome
# --- Search / navigation ---
# Nano searches are case-insensitive by default unless explicitly changed.
# Keep searches case-insensitive for easier interactive searching.
set afterends
# --- Bracket / programming conveniences ---
set brackets ""')]}"
# --- Vim-like conveniences ---
# Ctrl+K cuts from the cursor to the end of the line, rather than
# removing the entire line.
set cutfromcursor
# --- Scrolling ---
set jumpyscrolling
# --- Syntax highlighting ---
include "/usr/share/nano/*.nanorc"
# --- Custom keybindings ---
# Ctrl+S = Save
bind ^S writeout main
# Ctrl+Q = Exit
bind ^Q exit main
# Alt+H = Smart Home toggle
bind M-H smarthome main
# Alt+I = Auto-indent toggle
bind M-I autoindent main
# Alt+N = Line-number toggle
bind M-N linenumbers main
# Alt+S = Soft-wrap toggle
bind M-S softwrap main⚠️Content was pasted as plain text and auto-formatted as a code block. Use the Code Block button in the editor for proper formatting.