diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2017-11-06 11:51:07 +1300 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2017-11-06 11:53:06 +1300 |
commit | 57b34a5645b5d0325426dbb60b8d3f80ff6bfe7a (patch) | |
tree | 93e4e5968da966e034b0720bf95bf97771589440 /vim/doc | |
parent | Rename l:op to l:operation for clarity (diff) | |
download | dotfiles-57b34a5645b5d0325426dbb60b8d3f80ff6bfe7a.tar.gz dotfiles-57b34a5645b5d0325426dbb60b8d3f80ff6bfe7a.zip |
Extend toggle_option_flag.vim for string flags
This commit extends toggle_option_flag.vim to allow the exported
commands to toggle values of more than one character, for
comma-separated options like 'switchbuf', e.g.:
:ToggleOptionFlag switchbuf useopen
Diffstat (limited to 'vim/doc')
-rw-r--r-- | vim/doc/toggle_option_flag.txt | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/vim/doc/toggle_option_flag.txt b/vim/doc/toggle_option_flag.txt index 16557d5c..9415ae6b 100644 --- a/vim/doc/toggle_option_flag.txt +++ b/vim/doc/toggle_option_flag.txt @@ -1,14 +1,15 @@ -*toggle_option_flag.txt* Commands to toggle single-character option flags +*toggle_option_flag.txt* Commands to toggle option flags Author: Tom Ryder <tom@sanctum.geek.nz> License: Same terms as Vim itself (see |license|) This plugin provides commands :ToggleOptionFlag and :ToggleOptionFlagLocal to toggle the values of options like |'formatoptions'| or |'complete'| that have -values comprised of single-character flags. The author originally designed it -for toggling flags in |'formatoptions'| quickly. +values comprised of single-character or comma-separated flags. The author +originally designed it for toggling flags in |'formatoptions'| quickly. :ToggleOptionFlag formatoptions a + :ToggleOptionFlag switchbuf useopen :ToggleOptionFlagLocal shortmess I This plugin lives in Tom Ryder's "dotfiles" suite, and will eventually be spun |