P_BOOL
)
P_NUM
)
P_STRING
, P_NFNAME
)
P_COMMA
, P_ONECOMMA
)
P_FLAGLIST
)
vimoption
struct.
:set all | shows all options and their values. |
:set opt& | reverts opt to its default value |
:set opt&vim | reverts opt to default VIM value |
:set opt&vi | to default vi value. |
:set all& | sets all options to their default value. |
:set opt! | toggle (invert) boolean options (such as autoindent ). |
:set invOPT | toggles (boolean) OPT . Same effect as :set OPT! . |
:set opt? | displays the current value for the option. |
:set opt< | Remove local value of an option so that global value will be used. |
:setl opt< | Copy global value of an option to its local value. |
:set opt=… , :set opt:… | Assigns a value to a number or text option. (Whitespace on left side of = or : is ignored, on right side, whitespace is not allowed because it separates it from the next assignment) |
:set opt+=… | Add flag to flag option; increment number option by given value; append given value to text value |
:set opt-=… | |
:set op^+=… | Multiply number value; prepend value to text value |
:options | opens a window (or menu?) to choose options. |
:set ignorecase shiftwidth=4 autoindent
P_SECURE
and/or P_NO_ML
option flag. :set
them is ignored, and they're not printed. autoread | Automatically reload files whose content was changed outside of VIM. |
autoindent | |
binary | |
bufhidden | |
buflisted | |
buftype | |
cindent | |
cinkeys | A list of keywords that start an extra indent when smartindent or cindent is set |
cinwords | |
compatible | |
endofline | |
eventignore | a list of events that are ignored (not triggerd) |
expandtab | |
fixendofline | |
helpfile | |
indentexpr | |
indentkeys | |
lisp | |
magic | |
paste | disables or resets some options so as to be able to paste text into a buffer |
pastetoggle | key sequence that toggles the paste option. |
revins | |
ruler | |
smartindent | |
showmatch | |
smarttab | |
softabstop | |
swapfile | |
textwidth | |
updatetime | |
vartabstop | |
wrapmargin | |
foldtext (see vim - folding text) |