How do I remove more than one flag using a single “:set” command
from a Vim option? You can remove more than one flag from a Vim option using a single “:set” command, by specifying the flags in exactly the same order as they appear in the option. For example, if you use the following command to remove the ‘t’ and ‘n’ flags from the ‘formatoptions’ option:
:set formatoptions-=tn
The ‘t’ and ‘n’ flags will be removed from the ‘formatoptions’ option, only if the ‘formatoptions’ option contains these flags in this order: ‘tn’. Otherwise, it will not remove the flags. To avoid this problem, you can remove the flags one by one:
:set formatoptions-=t formatoptions-=n
Comments (1)
Pepsh Pepshinsky
Let’s see you to :help viminfo-file-name (option -i) :set viminfofile=NONE