aboutsummaryrefslogtreecommitdiff
path: root/vim/plugin/toggle_option_flag.vim
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2017-11-06 09:39:36 +1300
committerTom Ryder <tom@sanctum.geek.nz>2017-11-06 09:39:36 +1300
commit3a53baf2ca965e6c14c88bda075dacd550d3c0df (patch)
treeaecbd1e662a4da42aecd5a2cbfd03088e0f602b3 /vim/plugin/toggle_option_flag.vim
parentMerge branch 'hotfix/v0.9.1' into develop (diff)
downloaddotfiles-3a53baf2ca965e6c14c88bda075dacd550d3c0df.tar.gz
dotfiles-3a53baf2ca965e6c14c88bda075dacd550d3c0df.zip
Complete ToggleOptionFlag commands with opt names
Only a small subset of option names actually apply, so I'm not entirely sure this is actually better than nothing.
Diffstat (limited to 'vim/plugin/toggle_option_flag.vim')
-rw-r--r--vim/plugin/toggle_option_flag.vim4
1 files changed, 2 insertions, 2 deletions
diff --git a/vim/plugin/toggle_option_flag.vim b/vim/plugin/toggle_option_flag.vim
index ad89d080..f8dcd3a9 100644
--- a/vim/plugin/toggle_option_flag.vim
+++ b/vim/plugin/toggle_option_flag.vim
@@ -46,9 +46,9 @@ function! s:Toggle(option, flag, local)
endfunction
" User commands wrapping around calls to the above function
-command! -nargs=+
+command! -nargs=+ -complete=option
\ ToggleOptionFlag
\ call <SID>Toggle(<f-args>, 0)
-command! -nargs=+
+command! -nargs=+ -complete=option
\ ToggleOptionFlagLocal
\ call <SID>Toggle(<f-args>, 1)