JustPaste
HomeCategoriesAboutDonateContactTerms of UsePrivacy Policy
JustPaste

Free online notepad — write and share instantly

Navigate

  • Home
  • Timeline
  • Categories

Info

  • About
  • Donate
  • Contact

Legal

  • Terms of Use
  • Privacy Policy

© 2026 JustPaste.app. All rights reserved.

Made with ♥ by JustPaste

Nano config files | JustPaste.app
about 1 month ago5 views
👨‍💻Programming

Nano config files

# ~/.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.

← Back to timeline