cmc/dotfiles

Using GNU Stow to manage my dotfiles.

clone: git clone https://gitbay.org/cmc/dotfiles.git

main: common/nanorc/.config/nano/nanorc · raw

 1# Settings for `nano` editor
 2# Full list of settings might be shown via `man nano`
 3# or here: https://www.nano-editor.org/dist/v3/nanorc.5.html
 4
 5# Influenced by:
 6# https://bash-prompt.net/guides/nanorc-settings
 7
 8# Editor:
 9set tabsize 4      # set tab-to-spaces size to 4
10set tabstospaces   # convert TAB key press to spaces
11set trimblanks     # trim extra spaces
12
13set softwrap       # enable softwrap of lines
14set atblanks       # wrap line at blanks
15set constantshow
16set nohelp         # disable help, CTRL+G to view it
17set autoindent     # next line will have the same indent as the current one
18set historylog     # save the last 100 history searches for later use
19set positionlog    # save the cursor position between editing sessions
20set zap            # highlight text (CTRL+SHIFT+ARROW) and delete it with backspace
21set cutfromcursor  # cut to end of line with CTRL+K
22set indicator      # display a scroll bar on the right
23set minibar        # information in the bottom bar, removes top bar
24
25# Extra files:
26set backup
27set backupdir "~/.nano-backups"
28set historylog
29
30# line numbers are copied with text, it is not useful:
31# set linenumbers
32
33# Syntax highlight:
34include /opt/homebrew/opt/nano/share/nano/*.nanorc
35
36# Hotkeys:
37# Full list: https://www.nano-editor.org/dist/latest/cheatsheet.html
38
39unbind ^w main
40bind ^f whereis main
41bind ^z undo main