Compare commits
21
Commits
master
..
d91467f114
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d91467f114 | ||
|
|
e94ba07fc5 | ||
|
|
eb4958643c | ||
|
|
127116965b | ||
|
|
7a2023eb93 | ||
|
|
4d15e6b324 | ||
|
|
4712546103 | ||
|
|
0b49a06b6d | ||
|
|
666ef71041 | ||
|
|
47bd702fe8 | ||
|
|
99bf3ef4fd | ||
|
|
ce6690be07 | ||
|
|
b33bf3aa56 | ||
|
|
c8530b0046 | ||
|
|
a1b442b1af | ||
|
|
952ec75ff2 | ||
|
|
98851560b2 | ||
|
|
cc16171671 | ||
|
|
d99442983f | ||
|
|
803698b889 | ||
|
|
b6d0e0be5b |
@@ -14,16 +14,6 @@
|
|||||||
## Inside string parameters, quotes should not be escaped -- the last
|
## Inside string parameters, quotes should not be escaped -- the last
|
||||||
## double quote on the line will be seen as the closing quote.
|
## double quote on the line will be seen as the closing quote.
|
||||||
|
|
||||||
## If you want ^F, ^B, M-F and M-B to do what they did before version 8.0:
|
|
||||||
# bind ^F forward main
|
|
||||||
# bind ^B back main
|
|
||||||
# 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)
|
## Make 'nextword' (Ctrl+Right) and 'chopwordright' (Ctrl+Delete)
|
||||||
## stop at word ends instead of at beginnings.
|
## stop at word ends instead of at beginnings.
|
||||||
# set afterends
|
# set afterends
|
||||||
@@ -60,11 +50,7 @@ set autoindent
|
|||||||
## Do case-sensitive searches by default.
|
## Do case-sensitive searches by default.
|
||||||
# set casesensitive
|
# set casesensitive
|
||||||
|
|
||||||
## Interpret digits after a colon after a filename (on the command line)
|
## Constantly display the cursor position in the status bar or minibar.
|
||||||
## as the line number to go to in that file.
|
|
||||||
# set colonparsing
|
|
||||||
|
|
||||||
## Constantly report the cursor position, in the status bar or minibar.
|
|
||||||
# set constantshow
|
# set constantshow
|
||||||
|
|
||||||
## Use cut-from-cursor-to-end-of-line by default.
|
## Use cut-from-cursor-to-end-of-line by default.
|
||||||
@@ -82,7 +68,7 @@ set autoindent
|
|||||||
## (This option does not have a default value.)
|
## (This option does not have a default value.)
|
||||||
# set guidestripe 75
|
# set guidestripe 75
|
||||||
|
|
||||||
## Remember the used search/replace/command strings for the next session.
|
## Remember the used search/replace strings for the next session.
|
||||||
# set historylog
|
# set historylog
|
||||||
|
|
||||||
## Display a "scrollbar" on the righthand side of the edit window.
|
## Display a "scrollbar" on the righthand side of the edit window.
|
||||||
@@ -94,8 +80,9 @@ set indicator
|
|||||||
## Display line numbers to the left (and any anchors in the margin).
|
## Display line numbers to the left (and any anchors in the margin).
|
||||||
set linenumbers
|
set linenumbers
|
||||||
|
|
||||||
## Let other users (of nano or vim) know that you are editing the file
|
## Enable vim-style lock-files. This is just to let a vim user know you
|
||||||
## they are trying to edit, and the other way around.
|
## 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.
|
||||||
# set locking
|
# set locking
|
||||||
|
|
||||||
## Fall back to slow libmagic to try and determine an applicable syntax.
|
## Fall back to slow libmagic to try and determine an applicable syntax.
|
||||||
@@ -111,15 +98,16 @@ set linenumbers
|
|||||||
# set minibar
|
# set minibar
|
||||||
|
|
||||||
## Enable mouse support, if available for your system. When enabled,
|
## Enable mouse support, if available for your system. When enabled,
|
||||||
## mouse clicks can be used to place the cursor, set the mark (with
|
## mouse clicks can be used to place the cursor, set the mark (with a
|
||||||
## two clicks), and execute shortcuts. The mouse will work in the
|
## double click), and execute shortcuts. The mouse will work in the
|
||||||
## X Window System, and on the console when gpm is running.
|
## X Window System, and on the console when gpm is running.
|
||||||
# set mouse
|
# set mouse
|
||||||
|
|
||||||
## With ^R, insert a file into a separate buffer by default.
|
## Switch on multiple file buffers (inserting a file will put it into
|
||||||
# set newbuffer
|
## a separate buffer).
|
||||||
|
# set multibuffer
|
||||||
|
|
||||||
## Don't convert files from DOS format.
|
## Don't convert files from DOS/Mac format.
|
||||||
# set noconvert
|
# set noconvert
|
||||||
|
|
||||||
## Don't display the helpful shortcut lists at the bottom of the screen.
|
## Don't display the helpful shortcut lists at the bottom of the screen.
|
||||||
@@ -134,14 +122,14 @@ set nonewlines
|
|||||||
## string means the operating-directory feature is turned off.
|
## string means the operating-directory feature is turned off.
|
||||||
# set operatingdir ""
|
# set operatingdir ""
|
||||||
|
|
||||||
## Remember the position of cursor and anchors for the next editing session.
|
## Remember the cursor position in each file for the next editing session.
|
||||||
# set positionlog
|
# set positionlog
|
||||||
|
|
||||||
## Preserve the XON and XOFF keys (^Q and ^S).
|
## Preserve the XON and XOFF keys (^Q and ^S).
|
||||||
# set preserve
|
# set preserve
|
||||||
|
|
||||||
## The characters treated as closing punctuation when justifying paragraphs.
|
## The characters treated as closing punctuation when justifying paragraphs.
|
||||||
## This may not contain blank characters. Only these terminating characters,
|
## This may not contain blank characters. Only these closing punctuations,
|
||||||
## optionally followed by closing brackets, can end sentences.
|
## optionally followed by closing brackets, can end sentences.
|
||||||
# set punct "!.?"
|
# set punct "!.?"
|
||||||
|
|
||||||
@@ -180,9 +168,6 @@ set showcursor
|
|||||||
## Spread overlong lines over multiple screen lines.
|
## Spread overlong lines over multiple screen lines.
|
||||||
set softwrap
|
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
|
## Use this spelling checker instead of the internal one. This option
|
||||||
## does not have a default value.
|
## does not have a default value.
|
||||||
set speller "hunspell"
|
set speller "hunspell"
|
||||||
@@ -200,7 +185,7 @@ set tabsize 4
|
|||||||
## Snip whitespace at the end of lines when justifying or hard-wrapping.
|
## Snip whitespace at the end of lines when justifying or hard-wrapping.
|
||||||
# set trimblanks
|
# set trimblanks
|
||||||
|
|
||||||
## Save files always in Unix format (also when they were DOS).
|
## Save files by default in Unix format (also when they were DOS or Mac).
|
||||||
# set unix
|
# set unix
|
||||||
|
|
||||||
## The two single-column characters used to display the first characters
|
## The two single-column characters used to display the first characters
|
||||||
@@ -235,9 +220,9 @@ set tabsize 4
|
|||||||
# set statuscolor bold,white,green
|
# set statuscolor bold,white,green
|
||||||
# set errorcolor bold,white,red
|
# set errorcolor bold,white,red
|
||||||
# set spotlightcolor black,lightyellow
|
# set spotlightcolor black,lightyellow
|
||||||
# set selectedcolor lightwhite,#804
|
# set selectedcolor lightwhite,magenta
|
||||||
# set stripecolor ,#444
|
# set stripecolor ,yellow
|
||||||
# set scrollercolor slate,#222
|
# set scrollercolor cyan
|
||||||
# set numbercolor cyan
|
# set numbercolor cyan
|
||||||
# set keycolor cyan
|
# set keycolor cyan
|
||||||
# set functioncolor green
|
# set functioncolor green
|
||||||
@@ -260,12 +245,12 @@ set tabsize 4
|
|||||||
## For all details, see 'man nanorc', section SYNTAX HIGHLIGHTING.
|
## For all details, see 'man nanorc', section SYNTAX HIGHLIGHTING.
|
||||||
|
|
||||||
## To include most of the existing syntax definitions, you can do:
|
## To include most of the existing syntax definitions, you can do:
|
||||||
include /usr/share/nano/*.nanorc
|
include "/usr/share/nano/*.nanorc"
|
||||||
|
|
||||||
## Or you can select just the ones you need. For example:
|
## Or you can select just the ones you need. For example:
|
||||||
# include /usr/share/nano/html.nanorc
|
# include "/usr/share/nano/html.nanorc"
|
||||||
# include /usr/share/nano/python.nanorc
|
# include "/usr/share/nano/python.nanorc"
|
||||||
# include /usr/share/nano/sh.nanorc
|
# include "/usr/share/nano/sh.nanorc"
|
||||||
|
|
||||||
## In /usr/share/nano/extra/ you can find some syntaxes that are
|
## In /usr/share/nano/extra/ you can find some syntaxes that are
|
||||||
## specific for certain distros or for some less common languages.
|
## specific for certain distros or for some less common languages.
|
||||||
@@ -275,6 +260,9 @@ include /usr/share/nano/*.nanorc
|
|||||||
## independent of the settings of 'tabsize' and 'tabstospaces':
|
## independent of the settings of 'tabsize' and 'tabstospaces':
|
||||||
# extendsyntax python tabgives " "
|
# extendsyntax python tabgives " "
|
||||||
|
|
||||||
|
## If <Tab> should always produce an actual TAB when editing a Makefile:
|
||||||
|
# extendsyntax makefile tabgives " "
|
||||||
|
|
||||||
|
|
||||||
## === Key bindings ===
|
## === Key bindings ===
|
||||||
## For all details, see 'man nanorc', section REBINDING KEYS.
|
## For all details, see 'man nanorc', section REBINDING KEYS.
|
||||||
@@ -302,23 +290,13 @@ bind ^H chopwordleft main
|
|||||||
# unbind M-T main
|
# unbind M-T main
|
||||||
## (Those functions are still accessible through ^T^J and ^T^V.)
|
## (Those functions are still accessible through ^T^J and ^T^V.)
|
||||||
|
|
||||||
## For quickly uppercasing or lowercasing the word that the cursor is on.
|
## For quickly uppercasing or lowercasing the word under or after the cursor.
|
||||||
## (These effectively select a word and pipe it through a sed command.)
|
## (These effectively select a word and pipe it through a sed command.)
|
||||||
# bind Sh-M-U "{nextword}{mark}{prevword}{execute}| sed 's/.*/\U&/' {enter}" 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
|
#bind Sh-M-L "{nextword}{mark}{prevword}{execute}|sed 's/.*/\L&/'{enter}" main
|
||||||
|
|
||||||
## Two ways of copying a marked region to the system clipboard:
|
## For copying a marked region to the system clipboard:
|
||||||
# bind Sh-M-C "{execute}| xsel -ib {enter}{undo}" main
|
# bind Sh-M-T "{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
|
|
||||||
|
|
||||||
## For wiping all anchors in a buffer:
|
|
||||||
# bind Sh-M-W "{execute}| cat {enter}" main
|
|
||||||
|
|
||||||
## For snipping trailing blanks when you save a file:
|
## For snipping trailing blanks when you save a file:
|
||||||
# bind ^S "{execute}| sed 's/\s\+$//' {enter}{savefile}" main
|
# bind ^S "{execute}| sed 's/\s\+$//' {enter}{savefile}" main
|
||||||
@@ -326,37 +304,37 @@ bind ^H chopwordleft main
|
|||||||
## If you would like nano to have keybindings that are more "usual",
|
## If you would like nano to have keybindings that are more "usual",
|
||||||
## such as ^O for Open, ^F for Find, ^H for Help, and ^Q for Quit,
|
## such as ^O for Open, ^F for Find, ^H for Help, and ^Q for Quit,
|
||||||
## then uncomment these:
|
## then uncomment these:
|
||||||
# bind ^X cut main
|
#bind ^X cut main
|
||||||
# bind ^C copy main
|
#bind ^C copy main
|
||||||
# bind ^V paste all
|
#bind ^V paste all
|
||||||
# bind ^Q exit all
|
#bind ^Q exit all
|
||||||
# bind ^S savefile main
|
#bind ^S savefile main
|
||||||
# bind ^W writeout main
|
#bind ^W writeout main
|
||||||
# bind ^O insert main
|
#bind ^O insert main
|
||||||
# set newbuffer
|
#set multibuffer
|
||||||
# bind ^H help all
|
#bind ^H help all
|
||||||
# bind ^H exit help
|
#bind ^H exit help
|
||||||
# bind ^F whereis all
|
#bind ^F whereis all
|
||||||
# bind ^G findnext all
|
#bind ^G findnext all
|
||||||
# bind ^B wherewas all
|
#bind ^B wherewas all
|
||||||
# bind ^D findprevious all
|
#bind ^D findprevious all
|
||||||
# bind ^R replace main
|
#bind ^R replace main
|
||||||
# unbind ^U all
|
#unbind ^U all
|
||||||
# unbind ^N main
|
#unbind ^N main
|
||||||
# unbind ^Y all
|
#unbind ^Y all
|
||||||
# unbind M-J main
|
#unbind M-J main
|
||||||
# unbind M-T main
|
#unbind M-T main
|
||||||
# bind ^A mark main
|
#bind ^A mark main
|
||||||
# bind ^P location main
|
#bind ^P location main
|
||||||
# bind ^T gotoline main
|
#bind ^T gotoline main
|
||||||
# bind ^T gotodir browser
|
#bind ^T gotodir browser
|
||||||
# bind ^T cutrestoffile execute
|
#bind ^T cutrestoffile execute
|
||||||
# bind ^L linter execute
|
#bind ^L linter execute
|
||||||
# bind ^E execute main
|
#bind ^E execute main
|
||||||
# bind ^K "{mark}{end}{zap}" main
|
#bind ^K "{mark}{end}{zap}" main
|
||||||
# bind ^U "{mark}{home}{zap}" main
|
#bind ^U "{mark}{home}{zap}" main
|
||||||
# bind ^Z undo main
|
#bind ^Z undo main
|
||||||
# bind ^Y redo main
|
#bind ^Y redo main
|
||||||
|
|
||||||
## The following custom key bindings are written in the order they appear
|
## The following custom key bindings are written in the order they appear
|
||||||
## in the manual.
|
## in the manual.
|
||||||
@@ -540,6 +518,8 @@ unbind M-\ all
|
|||||||
bind M-N flipnewbuffer all
|
bind M-N flipnewbuffer all
|
||||||
# flipconvert
|
# flipconvert
|
||||||
bind M-C flipconvert insert
|
bind M-C flipconvert insert
|
||||||
|
# macformat
|
||||||
|
bind M-M macformat writeout
|
||||||
# browser
|
# browser
|
||||||
bind M-F browser writeout
|
bind M-F browser writeout
|
||||||
bind M-F browser insert
|
bind M-F browser insert
|
||||||
@@ -562,7 +542,7 @@ unbind M-Y main
|
|||||||
#bind Sh-M-Del cutfromcursor main // doesn't work
|
#bind Sh-M-Del cutfromcursor main // doesn't work
|
||||||
unbind M-K main
|
unbind M-K main
|
||||||
# nowrap
|
# nowrap
|
||||||
bind M-H breaklonglines main
|
bind M-H nowrap main
|
||||||
# tabstospaces
|
# tabstospaces
|
||||||
unbind M-O main
|
unbind M-O main
|
||||||
# mouse
|
# mouse
|
||||||
|
|||||||
Reference in new issue
Block a user