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

Read free Software Algorithms and Computer Science Books by CodeAhoy Learn.

Introduction to Recursion and Backtracking

Sorting Algorithms

Introduction to C Programming Language

And More...

Speak Your Mind