You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

252 lines
8.0 KiB

  1. ## Sample initialization file for GNU nano.
  2. ##
  3. ## Please note that you must have configured nano with --enable-nanorc
  4. ## for this file to be read! Also note that this file should not be in
  5. ## DOS or Mac format, and that characters specially interpreted by the
  6. ## shell should not be escaped here.
  7. ##
  8. ## To make sure an option is disabled, use "unset <option>".
  9. ##
  10. ## For the options that take parameters, the default value is given.
  11. ## Other options are unset by default.
  12. ##
  13. ## Quotes inside string parameters don't have to be escaped with
  14. ## backslashes. The last double quote in the string will be treated as
  15. ## its end. For example, for the "brackets" option, ""')>]}" will match
  16. ## ", ', ), >, ], and }.
  17. ## Silently ignore problems with unknown directives in the nanorc file.
  18. ## Useful when your nanorc file might be read on systems with multiple
  19. ## versions of nano installed (e.g. your home directory is on NFS).
  20. # set quiet
  21. ## Use auto-indentation.
  22. # set autoindent
  23. ## Back up files to the current filename plus a tilde.
  24. # set backup
  25. ## The directory to put unique backup files in.
  26. # set backupdir ""
  27. ## Do backwards searches by default.
  28. # set backwards
  29. ## Use bold text instead of reverse video text.
  30. # set boldtext
  31. ## The characters treated as closing brackets when justifying
  32. ## paragraphs. They cannot contain blank characters. Only closing
  33. ## punctuation, optionally followed by closing brackets, can end
  34. ## sentences.
  35. # set brackets ""')>]}"
  36. ## Do case-sensitive searches by default.
  37. # set casesensitive
  38. ## Constantly display the cursor position in the statusbar. Note that
  39. ## this overrides "quickblank".
  40. # set const
  41. ## Use cut-to-end-of-line by default.
  42. # set cut
  43. ## Set the line length for wrapping text and justifying paragraphs.
  44. ## If the value is 0 or less, the wrapping point will be the screen
  45. ## width less this number.
  46. # set fill -8
  47. ## Enable ~/.nano_history for saving and reading search/replace strings.
  48. # set historylog
  49. ## Enable vim-style lock-files. This is just to let a vim user know you
  50. ## are editing a file [s]he is trying to edit and vice versa. There are
  51. ## no plans to implement vim-style undo state in these files.
  52. # set locking
  53. ## The opening and closing brackets that can be found by bracket
  54. ## searches. They cannot contain blank characters. The former set must
  55. ## come before the latter set, and both must be in the same order.
  56. # set matchbrackets "(<[{)>]}"
  57. ## Use the blank line below the titlebar as extra editing space.
  58. # set morespace
  59. ## Enable mouse support, if available for your system. When enabled,
  60. ## mouse clicks can be used to place the cursor, set the mark (with a
  61. ## double click), and execute shortcuts. The mouse will work in the X
  62. ## Window System, and on the console when gpm is running.
  63. # set mouse
  64. ## Switch on multiple file buffers (inserting a file will put it into
  65. ## a separate buffer).
  66. # set multibuffer
  67. ## Don't convert files from DOS/Mac format.
  68. # set noconvert
  69. ## Don't follow symlinks when writing files.
  70. # set nofollow
  71. ## Don't display the helpful shortcut lists at the bottom of the screen.
  72. # set nohelp
  73. ## Don't add newlines to the ends of files.
  74. # set nonewlines
  75. ## Don't wrap text at all.
  76. # set nowrap
  77. ## Set operating directory. nano will not read or write files outside
  78. ## this directory and its subdirectories. Also, the current directory
  79. ## is changed to here, so any files are inserted from this dir. A blank
  80. ## string means the operating-directory feature is turned off.
  81. # set operatingdir ""
  82. ## Remember the cursor position in each file for the next editing session.
  83. # set poslog
  84. ## Preserve the XON and XOFF keys (^Q and ^S).
  85. # set preserve
  86. ## The characters treated as closing punctuation when justifying
  87. ## paragraphs. They cannot contain blank characters. Only closing
  88. ## punctuation, optionally followed by closing brackets, can end
  89. ## sentences.
  90. # set punct "!.?"
  91. ## Do quick statusbar blanking. Statusbar messages will disappear after
  92. ## 1 keystroke instead of 26. Note that "const" overrides this.
  93. # set quickblank
  94. ## The email-quote string, used to justify email-quoted paragraphs.
  95. ## This is an extended regular expression if your system supports them,
  96. ## otherwise a literal string.
  97. ## If you have extended regular expression support, the default is:
  98. # set quotestr "^([ ]*[#:>\|}])+"
  99. ## Otherwise:
  100. # set quotestr "> "
  101. ## Fix Backspace/Delete confusion problem.
  102. # set rebinddelete
  103. ## Fix numeric keypad key confusion problem.
  104. # set rebindkeypad
  105. ## Do extended regular expression searches by default.
  106. # set regexp
  107. ## Make the Home key smarter. When Home is pressed anywhere but at the
  108. ## very beginning of non-whitespace characters on a line, the cursor
  109. ## will jump to that beginning (either forwards or backwards). If the
  110. ## cursor is already at that position, it will jump to the true
  111. ## beginning of the line.
  112. # set smarthome
  113. ## Use smooth scrolling as the default.
  114. # set smooth
  115. ## Enable soft line wrapping (AKA full-line display).
  116. # set softwrap
  117. ## Use this spelling checker instead of the internal one. This option
  118. ## does not properly have a default value.
  119. # set speller "aspell -x -c"
  120. ## Allow nano to be suspended.
  121. # set suspend
  122. ## Use this tab size instead of the default; it must be greater than 0.
  123. # set tabsize 8
  124. ## Convert typed tabs to spaces.
  125. # set tabstospaces
  126. ## Save automatically on exit; don't prompt.
  127. # set tempfile
  128. ## Enable the new (EXPERIMENTAL) generic undo code, not just for line
  129. ## cuts.
  130. # set undo
  131. ## Disallow file modification. Why would you want this in an rcfile? ;)
  132. # set view
  133. ## The two single-column characters used to display the first characters
  134. ## of tabs and spaces. 187 in ISO 8859-1 (0000BB in Unicode) and 183 in
  135. ## ISO-8859-1 (0000B7 in Unicode) seem to be good values for these.
  136. ## The default when in a UTF-8 locale:
  137. # set whitespace "»·"
  138. ## The default otherwise:
  139. # set whitespace ">."
  140. ## Detect word boundaries more accurately by treating punctuation
  141. ## characters as parts of words.
  142. # set wordbounds
  143. ## Paint the interface elements of nano.
  144. ## This is an example; by default there are no colors.
  145. # set titlecolor brightwhite,blue
  146. # set statuscolor brightwhite,green
  147. # set keycolor green
  148. # set functioncolor yellow
  149. ## Setup of syntax coloring.
  150. ##
  151. ## Format:
  152. ##
  153. ## syntax "short description" ["filename regex" ...]
  154. ##
  155. ## The "none" syntax is reserved; specifying it on the command line is
  156. ## the same as not having a syntax at all. The "default" syntax is
  157. ## special: it takes no filename regexes, and applies to files that
  158. ## don't match any other syntax's filename regexes.
  159. ##
  160. ## color foreground,background "regex" ["regex"...]
  161. ## or
  162. ## icolor foreground,background "regex" ["regex"...]
  163. ##
  164. ## "color" will do case-sensitive matches, while "icolor" will do
  165. ## case-insensitive matches.
  166. ##
  167. ## Valid colors: white, black, red, blue, green, yellow, magenta, cyan.
  168. ## For foreground colors, you may use the prefix "bright" to get a
  169. ## stronger highlight.
  170. ##
  171. ## To use multi-line regexes, use the start="regex" end="regex"
  172. ## [start="regex" end="regex"...] format.
  173. ##
  174. ## If your system supports transparency, not specifying a background
  175. ## color will use a transparent color. If you don't want this, be sure
  176. ## to set the background color to black or white.
  177. ##
  178. ## All regexes should be extended regular expressions.
  179. ##
  180. ## If you wish, you may put your syntax definitions in separate files.
  181. ## You can make use of such files as follows:
  182. ##
  183. ## include "/path/to/syntax_file.nanorc"
  184. ##
  185. ## Unless otherwise noted, the name of the syntax file (without the
  186. ## ".nanorc" extension) should be the same as the "short description"
  187. ## name inside that file. These names are kept fairly short to make
  188. ## them easier to remember and faster to type using nano's -Y option.
  189. ##
  190. ## To include all existing syntax definitions, you can do:
  191. include "/usr/share/nano/*.nanorc"
  192. ## Key bindings.
  193. ## See nanorc(5) for more details on this.
  194. ##
  195. ## Here are a few samples to get you going.
  196. ##
  197. # bind M-W nowrap main
  198. # bind M-A casesens search
  199. # bind ^S research main
  200. ## Set this if your backspace key sends Del most of the time.
  201. # bind Del backspace all