Last active
April 7, 2019 13:49
-
-
Save lmintmate/13335cfeef4567d2c7e4c3d2d01f33c5 to your computer and use it in GitHub Desktop.
My nanorc file (nano 4.0)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## when compiling nano from source, make sure you use ./configure --enable-utf8. See https://devtidbits.com/2015/11/26/update-the-nano-text-editor-on-ubuntu/ | |
## syntax highlighting: After compiling the latest version of nano from source, I wasn't able to find where the builtin syntax files are stored (if they were even installed). Thankfully, there's a repo on github with improved nano syntax highlighting files: https://github.com/scopatz/nanorc | |
include "~/.nano/*.nanorc" | |
## Options | |
## for more options see the nano manual: https://www.nano-editor.org/dist/latest/nano.pdf | |
## the color related options are set based on my terminal colors, and will probably not look good wth different colors | |
## set soft wrap | |
set softwrap | |
## When soft line wrapping is enabled, make it wrap lines at blank characters (tabs and spaces) instead of always at the edge of the screen. (from nano manual) | |
set atblanks | |
## Use bold instead of reverse video for the title bar, status bar, key combos, function tags, line numbers, and selected text. This is overridden by setting the options titlecolor, statuscolor, keycolor, functioncolor, numbercolor, and selectedcolor. (from nano manual) | |
set boldtext | |
## Do case-sensitive searches by default. | |
set casesensitive | |
## Do not use the line below the title bar, leaving it entirely blank. Makes stuff look less cramped. | |
set emptyline | |
## set errorcolor | |
set errorcolor brightwhite,red | |
## display line numbers | |
set linenumbers | |
## color for selected text | |
set selectedcolor brightyellow,red | |
## color for status line | |
set statuscolor black,white | |
## color for title bar | |
set titlecolor black,white | |
## color for the numbers | |
set numbercolor white | |
## color for the shortcut key combos in the two help lines at the bottom of the screen. | |
set keycolor brightyellow |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment