Created
May 11, 2018 11:13
-
-
Save yochem/9859186ec4ab82cd8b6be64eaba48254 to your computer and use it in GitHub Desktop.
All options for your .nanorc file
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ------------------------------------------------------------------ | |
# | |
# All possible options for your .nanorc file as documented in the | |
# nanorc man page. | |
# | |
# ------------------------------------------------------------------ | |
# When backing up files, allow the backup to succeed even if its per- | |
# missions can't be (re)set due to special OS considerations. You | |
# should NOT enable this option unless you are sure you need it. | |
set allow_insecure_backup | |
# When soft line wrapping is enabled, make it wrap lines at blank | |
# characters (tabs and spaces) instead of always at the edge of the | |
# screen. | |
set atblanks | |
# Use auto-indentation. | |
set autoindent | |
# When saving a file, create a backup file by adding a tilde (~) to | |
# the file's name. | |
set backup | |
# Make and keep not just one backup file, but make and keep a uniquely | |
# numbered one every time a file is saved -- when backups are enabled | |
# with set backup or --backup or -B. The uniquely numbered files are | |
# stored in the specified directory. | |
set backupdir directory | |
# Obsolete option. Recognized but ignored.^Q is available to start | |
# a backward search. | |
set backwards | |
# Use bold instead of reverse video for the title bar, status bar, key | |
# combos, function tags, line numbers, and selected text. This can be | |
# overridden by setting the options titlecolor, statuscolor, keycolor, | |
# functioncolor, numbercolor, and selectedcolor. | |
set boldtext | |
# Set the characters treated as closing brackets when justifying para- | |
# graphs. This may not include blank characters. Only closing punc- | |
# tuation (see punct), optionally followed by the specified closing | |
# brackets, can end sentences. The default value is ""')>]}". | |
set brackets string | |
# Do case-sensitive searches by default. | |
set casesensitive | |
# Constantly display the cursor position in the status bar. This | |
# overrides the option quickblank. | |
set constantshow | |
# Use cut-from-cursor-to-end-of-line by default,instead of cutting | |
# the whole line.(The old form of this option, 'set cut', is depre- | |
# cated.) | |
set cutfromcursor | |
# Use this color combination for the status bar when an error message | |
# is displayed. See set titlecolor for valid color names. | |
set errorcolor fgcolor,bgcolor | |
# Hard-wrap lines at column number number. If number is 0 or less, | |
# the maximum line length will be the screen width less number col- | |
# umns. The default value is -8. This option conflicts with nowrap | |
# -- the last one given takes effect. | |
set fill number | |
# Specify the color combination to use for the function descriptions | |
# in the two help lines at the bottom of the screen. See set title- | |
# color for more details. | |
set functioncolor fgcolor,bgcolor | |
# Save the last hundred search strings and replacement strings and | |
# executed commands, so they can be easily reused in later sessions. | |
set historylog | |
# Specify the color combination to use for the shortcut key combos in | |
# the two help lines at the bottom of the screen. See set titlecolor | |
# for more details. | |
set keycolor fgcolor,bgcolor | |
# Display line numbers to the left of the text area. | |
set linenumbers | |
# Enable vim-style lock-files for when editing files. | |
set locking | |
# Set the opening and closing brackets that can be found by bracket | |
# searches. This may not include blank characters. The opening set | |
# must come before the closing set, and the two sets must be in the | |
# same order. The default value is "(<[{)>]}". | |
set matchbrackets string | |
# Use the blank line below the title bar as extra editing space. | |
set morespace | |
# Enable mouse support, if available for your system. When enabled, | |
# mouse clicks can be used to place the cursor, set the mark (with a | |
# double click), and execute shortcuts. The mouse will work in the X | |
# Window System, and on the console when gpm is running. Text can | |
# still be selected through dragging by holding down the Shift key. | |
set mouse | |
# When reading in a file with ^R, insert it into a new buffer by | |
# default. | |
set multibuffer | |
# Don't convert files from DOS/Mac format. | |
set noconvert | |
# Don't display the two help lines at the bottom of the screen. | |
set nohelp | |
# Don't automatically add a newline to the ends of files. | |
set nonewlines | |
# Don't pause between warnings at startup. This means that only the | |
# last one will be visible (when there are multiple ones). | |
set nopauses | |
# Don't hard-wrap text at all. This option conflicts with fill -- the | |
# last one given takes effect. | |
set nowrap | |
# Specify the color combination to use for line numbers. See set | |
# titlecolor for more details. | |
set numbercolor fgcolor,bgcolor | |
# nano will only read and write files inside directory and its subdi- | |
# rectories. Also, the current directory is changed to here, so files | |
# are inserted from this directory. By default, the operating direc- | |
# tory feature is turned off. | |
set operatingdir directory | |
# Save the cursor position of files between editing sessions. The | |
# cursor position is remembered for the 200 most-recently edited | |
# files. | |
set positionlog | |
# Preserve the XON and XOFF keys (^Q and ^S). | |
set preserve | |
# Set the characters treated as closing punctuation when justifying | |
# paragraphs. This may not include blank characters. Only the spec- | |
# fified closing punctuation, optionally followed by closing brackets | |
# (see brackets), can end sentences. The default value is "!.?". | |
set punct string | |
# Do quick status-bar blanking: status-bar messages will disappear | |
# after 1 keystroke instead of 25. The option constantshow overrides | |
# this. | |
set quickblank | |
# Obsolete option. Recognized but ignored. | |
set quiet | |
# The email-quote string, used to justify email-quoted paragraphs. | |
# This is an extended regular expression if your system supports them, | |
# otherwise a literal string. The default value is | |
# "^([ \t]*[#:>\|}])+" if you have extended regular expression sup- | |
# port, and "> " otherwise. Note that '\t' stands for a literal Tab | |
# character. | |
set quotestr string | |
# Interpret the Delete key differently so that both Backspace and | |
# Delete work properly. You should only need to use this option if | |
# Backspace acts like Delete on your system. | |
set rebinddelete | |
# Interpret the numeric keypad keys so that they all work properly. | |
# You should only need to use this option if they don't, as mouse sup- | |
# port won't work properly with this option enabled. | |
set rebindkeypad | |
# Do extended regular expression searches by default. | |
set regexp | |
# Specify the color combination to use for selected text. See set | |
# titlecolor for more details. | |
set selectedcolor fgcolor,bgcolor | |
# Put the cursor on the highlighted item in the file browser, to aid | |
# braille users. | |
set showcursor | |
# Make the Home key smarter. When Home is pressed anywhere but at the | |
# very beginning of non-whitespace characters on a line, the cursor | |
# wil jump to that beginning (either forwards or backwards). If the | |
# cursor is already at that position, it will jump to the true begin- | |
# ning of the line. | |
set smarthome | |
# Use smooth scrolling by default. | |
set smooth | |
# Enable soft line wrapping for easier viewing of very long lines. | |
set softwrap | |
# Use spelling checker spellprog instead of the built-in one, which | |
# calls spell. | |
set speller spellprog | |
# Specify the color combination to use for the statusbar. See set | |
# titlecolor for more details. | |
set statuscolor fgcolor,bgcolor | |
# Allow nano to be suspended. | |
set suspend | |
# Use a tab size of number columns. The value of number must be | |
# greater than 0. The default value is 8. | |
set tabsize number | |
# Convert typed tabs to spaces. | |
set tabstospaces | |
# Save automatically on exit, don't prompt. | |
set tempfile | |
# Specify the color combination to use for the title bar. Valid names | |
# for the foreground and background colors are: white, black, blue, | |
# green, red, cyan, yellow, magenta, and normal -- where normal means | |
# the default foreground or background color. The name of the fore- | |
# ground color may be prefixed with bright. And either "fgcolor" or | |
# ",bgcolor" may be left out. | |
set titlecolor fgcolor,bgcolor | |
# Remove trailing whitespace from wrapped lines when automatic hard- | |
# wrapping occurs or when text is justified. | |
set trimblanks | |
# Save a file by default in Unix format. This overrides nano's | |
# default behavior of saving a file in the format that it had. (This | |
# option has no effect when you also use set noconvert.) | |
set unix | |
# Disallow file modification. | |
set view | |
# Set the two characters used to indicate the presence of tabs and | |
# spaces. They must be single-column characters. The default pair | |
# for a UTF-8 locale is ">>.", and for other locales ">." | |
set whitespace string | |
# Detect word boundaries differently by treating punctuation charac- | |
# ters as parts of words. | |
set wordbounds | |
# Specify which other characters (besides the normal alphanumeric | |
# ones) should be considered as parts of words. This overrides the | |
# option wordbounds. | |
set wordchars string |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment