Advertisement
Guest User

Untitled

a guest
Sep 15th, 2019
183
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.25 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 constantshow
  50. ## (The old form, 'const', is deprecated.)
  51.  
  52. ## Use cut-to-end-of-line by default.
  53. # set cut
  54.  
  55. ## Set the line length for wrapping text and justifying paragraphs.
  56. ## If the value is 0 or less, the wrapping point will be the screen
  57. ## width less this number.
  58. # set fill -8
  59.  
  60. ## Remember the used search/replace strings for the next session.
  61. # set historylog
  62.  
  63. ## Make the justify command kill whitespace at the end of lines.
  64. # set justifytrim
  65.  
  66. ## Display line numbers to the left of the text.
  67. # set linenumbers
  68.  
  69. ## Enable vim-style lock-files. This is just to let a vim user know you
  70. ## are editing a file [s]he is trying to edit and vice versa. There are
  71. ## no plans to implement vim-style undo state in these files.
  72. # set locking
  73.  
  74. ## The opening and closing brackets that can be found by bracket
  75. ## searches. They cannot contain blank characters. The former set must
  76. ## come before the latter set, and both must be in the same order.
  77. # set matchbrackets "(<[{)>]}"
  78.  
  79. ## Use the blank line below the titlebar as extra editing space.
  80. # set morespace
  81.  
  82. ## Enable mouse support, if available for your system. When enabled,
  83. ## mouse clicks can be used to place the cursor, set the mark (with a
  84. ## double click), and execute shortcuts. The mouse will work in the X
  85. ## Window System, and on the console when gpm is running.
  86. # set mouse
  87.  
  88. ## Switch on multiple file buffers (inserting a file will put it into
  89. ## a separate buffer).
  90. # set multibuffer
  91.  
  92. ## Don't convert files from DOS/Mac format.
  93. # set noconvert
  94.  
  95. ## Don't display the helpful shortcut lists at the bottom of the screen.
  96. # set nohelp
  97.  
  98. ## Don't pause between warnings at startup. Which means that only the
  99. ## last one will be readable (when there are multiple ones).
  100. # set nopauses
  101.  
  102. ## Don't add newlines to the ends of files.
  103. # set nonewlines
  104.  
  105. ## Don't wrap text at all.
  106. # set nowrap
  107.  
  108. ## Set operating directory. nano will not read or write files outside
  109. ## this directory and its subdirectories. Also, the current directory
  110. ## is changed to here, so any files are inserted from this dir. A blank
  111. ## string means the operating-directory feature is turned off.
  112. # set operatingdir ""
  113.  
  114. ## Remember the cursor position in each file for the next editing session.
  115. # set positionlog
  116. ## (The old form, 'poslog', is deprecated.)
  117.  
  118. ## Preserve the XON and XOFF keys (^Q and ^S).
  119. # set preserve
  120.  
  121. ## The characters treated as closing punctuation when justifying
  122. ## paragraphs. They cannot contain blank characters. Only closing
  123. ## punctuation, optionally followed by closing brackets, can end
  124. ## sentences.
  125. # set punct "!.?"
  126.  
  127. ## Do quick statusbar blanking. Statusbar messages will disappear after
  128. ## 1 keystroke instead of 26. Note that "const" overrides this.
  129. # set quickblank
  130.  
  131. ## The email-quote string, used to justify email-quoted paragraphs.
  132. ## This is an extended regular expression if your system supports them,
  133. ## otherwise a literal string.
  134. ## If you have extended regular expression support, the default is:
  135. # set quotestr "^([ ]*[#:>\|}])+"
  136. ## Otherwise:
  137. # set quotestr "> "
  138.  
  139. ## Fix Backspace/Delete confusion problem.
  140. # set rebinddelete
  141.  
  142. ## Fix numeric keypad key confusion problem.
  143. # set rebindkeypad
  144.  
  145. ## Do extended regular expression searches by default.
  146. # set regexp
  147.  
  148. ## Put the cursor on the highlighted item in the file browser;
  149. ## useful for people who use a braille display.
  150. # set showcursor
  151.  
  152. ## Make the Home key smarter. When Home is pressed anywhere but at the
  153. ## very beginning of non-whitespace characters on a line, the cursor
  154. ## will jump to that beginning (either forwards or backwards). If the
  155. ## cursor is already at that position, it will jump to the true
  156. ## beginning of the line.
  157. # set smarthome
  158.  
  159. ## Use smooth scrolling as the default.
  160. set smooth
  161.  
  162. ## Enable soft line wrapping (AKA full-line display).
  163. # set softwrap
  164.  
  165. ## Use this spelling checker instead of the internal one. This option
  166. ## does not properly have a default value.
  167. # set speller "aspell -x -c"
  168.  
  169. ## Allow nano to be suspended.
  170. # set suspend
  171.  
  172. ## Use this tab size instead of the default; it must be greater than 0.
  173. set tabsize 4
  174.  
  175. ## Convert typed tabs to spaces.
  176. # set tabstospaces
  177.  
  178. ## Save automatically on exit; don't prompt.
  179. # set tempfile
  180.  
  181. ## Disallow file modification. Why would you want this in an rcfile? ;)
  182. # set view
  183.  
  184. ## The two single-column characters used to display the first characters
  185. ## of tabs and spaces. 187 in ISO 8859-1 (0000BB in Unicode) and 183 in
  186. ## ISO-8859-1 (0000B7 in Unicode) seem to be good values for these.
  187. ## The default when in a UTF-8 locale:
  188. # set whitespace "»·"
  189. ## The default otherwise:
  190. # set whitespace ">."
  191.  
  192. ## Detect word boundaries differently by treating punctuation
  193. ## characters as parts of words.
  194. # set wordbounds
  195.  
  196. ## The characters (besides alphanumeric ones) that should be considered
  197. ## as parts of words. This option does not have a default value. When
  198. ## set, it overrides option 'set wordbounds'.
  199. # set wordchars "<_>."
  200.  
  201.  
  202. ## Paint the interface elements of nano.
  203. ## These are examples; by default there are no colors.
  204. # set titlecolor brightwhite,blue
  205. # set statuscolor brightwhite,green
  206. # set numbercolor cyan
  207. # set keycolor cyan
  208. # set functioncolor green
  209. ## In root's .nanorc you might want to use:
  210. # set titlecolor brightwhite,red
  211. # set statuscolor brightwhite,red
  212. # set numbercolor magenta
  213. # set keycolor brightwhite
  214. # set functioncolor brightblue
  215.  
  216. # set titlecolor brightwhite,brightblue
  217. set statuscolor brightwhite,red
  218. set numbercolor magenta
  219. set keycolor brightwhite
  220. set functioncolor brightblue
  221.  
  222. ## Setup of syntax coloring.
  223. ##
  224. ## Format:
  225. ##
  226. ## syntax "short description" ["filename regex" ...]
  227. ##
  228. ## The "none" syntax is reserved; specifying it on the command line is
  229. ## the same as not having a syntax at all. The "default" syntax is
  230. ## special: it takes no filename regexes, and applies to files that
  231. ## don't match any other syntax's filename regexes.
  232. ##
  233. ## color foreground,background "regex" ["regex"...]
  234. ## or
  235. ## icolor foreground,background "regex" ["regex"...]
  236. ##
  237. ## "color" will do case-sensitive matches, while "icolor" will do
  238. ## case-insensitive matches.
  239. ##
  240. ## Valid colors: white, black, red, blue, green, yellow, magenta, cyan.
  241. ## For foreground colors, you may use the prefix "bright" to get a
  242. ## stronger highlight.
  243. ##
  244. ## To use multi-line regexes, use the start="regex" end="regex"
  245. ## [start="regex" end="regex"...] format.
  246. ##
  247. ## If your system supports transparency, not specifying a background
  248. ## color will use a transparent color. If you don't want this, be sure
  249. ## to set the background color to black or white.
  250. ##
  251. ## All regexes should be extended regular expressions.
  252. ##
  253. ## If you wish, you may put your syntax definitions in separate files.
  254. ## You can make use of such files as follows:
  255. ##
  256. ## include "/path/to/syntax_file.nanorc"
  257. ##
  258. ## Unless otherwise noted, the name of the syntax file (without the
  259. ## ".nanorc" extension) should be the same as the "short description"
  260. ## name inside that file. These names are kept fairly short to make
  261. ## them easier to remember and faster to type using nano's -Y option.
  262. ##
  263. ## To include all existing syntax definitions, you can do:
  264. # include "/opt/local/share/nano/*.nanorc"
  265.  
  266.  
  267. ## Key bindings.
  268. ## See nanorc(5) (section REBINDING KEYS) for more details on this.
  269. ##
  270. ## The following five functions are not bound to any key by default.
  271. ## You may wish to choose different keys than the ones suggested here.
  272. # bind ^S savefile main
  273. # bind M-Q findprevious main
  274. # bind M-W findnext main
  275. # bind M-B cutwordleft main
  276. # bind M-N cutwordright main
  277.  
  278. ## Set this if your Backspace key sends Del most of the time.
  279. # bind Del backspace all
  280.  
  281. include /opt/local/share/nano/asm.nanorc
  282. include /opt/local/share/nano/awk.nanorc
  283. include /opt/local/share/nano/c.nanorc
  284. include /opt/local/share/nano/cmake.nanorc
  285. include /opt/local/share/nano/css.nanorc
  286. include /opt/local/share/nano/debian.nanorc
  287. include /opt/local/share/nano/fortran.nanorc
  288. include /opt/local/share/nano/gentoo.nanorc
  289. include /opt/local/share/nano/groff.nanorc
  290. include /opt/local/share/nano/html.nanorc
  291. include /opt/local/share/nano/java.nanorc
  292. include /opt/local/share/nano/makefile.nanorc
  293. include /opt/local/share/nano/man.nanorc
  294. include /opt/local/share/nano/mgp.nanorc
  295. include /opt/local/share/nano/mutt.nanorc
  296. include /opt/local/share/nano/nanorc.nanorc
  297. include /opt/local/share/nano/objc.nanorc
  298. include /opt/local/share/nano/ocaml.nanorc
  299. include /opt/local/share/nano/patch.nanorc
  300. include /opt/local/share/nano/perl.nanorc
  301. include /opt/local/share/nano/php.nanorc
  302. include /opt/local/share/nano/pov.nanorc
  303. include /opt/local/share/nano/python.nanorc
  304. include /opt/local/share/nano/racket.nanorc
  305. include /opt/local/share/nano/ruby.nanorc
  306. include /opt/local/share/nano/sh.nanorc
  307. include /opt/local/share/nano/tcl.nanorc
  308. include /opt/local/share/nano/tex.nanorc
  309. include /opt/local/share/nano/xml.nanorc
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement