twodogsdave

.nanorc

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