dotfiles/.config/nano/nanorc

76 lines
2.7 KiB
Plaintext

#####################
## My nanorc ##
#####################
# Note: this file works on NANO VERSION > 5.0. If you aren't using the latest
# nano, you're uncool, and you should quit being uncool and get yourself a new
# nano. I mean, seriously, it's FREE, you have no excuse!
# Cheat Sheet (bc I'm actually vim user lol)
# For more, see (https://www.nano-editor.org/dist/latest/cheatsheet.html)
# Read in-editor help screen: Ctrl+g (open help guide)
# Save current buffer: Ctrl+S (obviously I guess, idk, I'm dumb and used to :w)
# Select text: Ctrl+^ (select, then you can copy/cut, Ctrl+^ again to unselect)
# Copy/cut selected text: Alt+^ (copy), Ctrl+K (cut)
# Paste text: Ctrl+U
# Delete text: Ctrl+Del (delete right word), Ctrl+Shift+Del (delete left word)
# Delete text (continued): Alt+Del (delete current line)
# Undo/redo: Alt+U (undo), Alt+E (redo)
# Go to top/bottom of file: Alt+\ (top of file), Alt+/ (bottom of file)
# (Un)comment line: Alt+3 (comment or uncomment current line)
# Fun Fact: Some Emacs navigation shortcuts Ctrl+P/N/F/B/E/A) actually work!
# TODO: add more hints
## Editor appearance/interface
set linenumbers
set titlecolor magenta,black
set statuscolor magenta
set keycolor magenta,black
set functioncolor magenta
set numbercolor magenta
set indicator # AKA "scrollbar"
set guidestripe 80 # vertical bar on right
set stripecolor black,magenta
unset emptyline
# unset whitespacedisplay # this setting doesn't exist, which is REALLY DUMB!
## Editor behavior
set autoindent
set softwrap
set tabsize 8
#set tabstospaces # will automatically replace TAB w/ spaces, disabled
set mouse
set nonewlines # I usually add a '\n' anyway, nano's not my babysitter
## Syntax highlighting
include "/usr/share/nano/asm.nanorc"
include "/usr/share/nano/c.nanorc"
include "/usr/share/nano/css.nanorc"
include "/usr/share/nano/default.nanorc"
include "/usr/share/nano/elisp.nanorc"
include "/usr/share/nano/go.nanorc"
include "/usr/share/nano/guile.nanorc"
include "/usr/share/nano/html.nanorc"
include "/usr/share/nano/java.nanorc"
include "/usr/share/nano/javascript.nanorc"
include "/usr/share/nano/json.nanorc"
include "/usr/share/nano/lua.nanorc"
include "/usr/share/nano/makefile.nanorc"
include "/usr/share/nano/markdown.nanorc"
include "/usr/share/nano/nanorc.nanorc"
include "/usr/share/nano/patch.nanorc"
include "/usr/share/nano/perl.nanorc"
include "/usr/share/nano/php.nanorc"
include "/usr/share/nano/puthon.nanorc"
include "/usr/share/nano/ruby.nanorc"
include "/usr/share/nano/rust.nanorc"
include "/usr/share/nano/sh.nanorc"
include "/usr/share/nano/sql.nanorc"
include "/usr/share/nano/tex.nanorc"
include "/usr/share/nano/xml.nanorc"
include "/usr/share/nano/extra/fortran.nanorc" # MEME ALERT!!!