nanorc: Merge-in new system file

This commit is contained in:
mattia committed 2026-11-15 22:03:14 +01:00
1 parent 22e059f223
commit 26c296fece
1 file changed
+21 -12
+21 -12
View File
@@ -20,6 +20,10 @@
# bind M-F formatter main
# bind M-B linter main
## Make M-< and M-> switch between buffers, as they did before version 9.0:
# bind M-< prevbuf main
# bind M-> nextbuf main
## Make 'nextword' (Ctrl+Right) and 'chopwordright' (Ctrl+Delete)
## stop at word ends instead of at beginnings.
# set afterends
@@ -56,7 +60,7 @@ set autoindent
## Do case-sensitive searches by default.
# set casesensitive
## Interpret digits given on the command line after a colon after a filename
## Interpret digits after a colon after a filename (on the command line)
## as the line number to go to in that file.
# set colonparsing
@@ -78,7 +82,7 @@ set autoindent
## (This option does not have a default value.)
# set guidestripe 75
## Remember the used search/replace strings for the next session.
## Remember the used search/replace/command strings for the next session.
# set historylog
## Display a "scrollbar" on the righthand side of the edit window.
@@ -90,9 +94,8 @@ set indicator
## Display line numbers to the left (and any anchors in the margin).
set linenumbers
## Enable vim-style lock-files. This is just to let a vim user know you
## are editing a file [s]he is trying to edit and vice versa. There are
## no plans to implement vim-style undo state in these files.
## Let other users (of nano or vim) know that you are editing the file
## they are trying to edit, and the other way around.
# set locking
## Fall back to slow libmagic to try and determine an applicable syntax.
@@ -113,11 +116,10 @@ set linenumbers
## X Window System, and on the console when gpm is running.
# set mouse
## Switch on multiple file buffers (inserting a file will put it into
## a separate buffer).
# set multibuffer
## With ^R, insert a file into a separate buffer by default.
# set newbuffer
## Don't convert files from DOS/Mac format.
## Don't convert files from DOS format.
# set noconvert
## Don't display the helpful shortcut lists at the bottom of the screen.
@@ -178,6 +180,9 @@ set showcursor
## Spread overlong lines over multiple screen lines.
set softwrap
## Scroll only the current line sideways (instead of all lines).
# set solosidescroll
## Use this spelling checker instead of the internal one. This option
## does not have a default value.
set speller "hunspell"
@@ -195,7 +200,7 @@ set tabsize 4
## Snip whitespace at the end of lines when justifying or hard-wrapping.
# set trimblanks
## Save files by default in Unix format (also when they were DOS or Mac).
## Save files always in Unix format (also when they were DOS).
# set unix
## The two single-column characters used to display the first characters
@@ -302,8 +307,12 @@ bind ^H chopwordleft main
# bind Sh-M-U "{nextword}{mark}{prevword}{execute}| sed 's/.*/\U&/' {enter}" main
# bind Sh-M-L "{nextword}{mark}{prevword}{execute}| sed 's/.*/\L&/' {enter}" main
## For copying a marked region to the system clipboard:
## Two ways of copying a marked region to the system clipboard:
# bind Sh-M-C "{execute}| xsel -ib {enter}{undo}" main
# bind Sh-M-P "{execute}| xclip -select clipboard 1>&- 2>&- {enter}{undo}" main
## For copying text to the local clipboard via OSC 52 (if terminal supports it):
# bind M-* "{execute}|| printf "\033]52;c;%s\007" "$(base64 | tr -d '\n')" {enter}{undo}" main
## For normalizing Unicode to precomposed characters:
# bind Sh-M-N "{execute}| uconv -x nfc {enter}" main
@@ -324,7 +333,7 @@ bind ^H chopwordleft main
# bind ^S savefile main
# bind ^W writeout main
# bind ^O insert main
# set multibuffer
# set newbuffer
# bind ^H help all
# bind ^H exit help
# bind ^F whereis all