From 3a53baf2ca965e6c14c88bda075dacd550d3c0df Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Mon, 6 Nov 2017 09:39:36 +1300 Subject: 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. --- vim/plugin/toggle_option_flag.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'vim') 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 Toggle(, 0) -command! -nargs=+ +command! -nargs=+ -complete=option \ ToggleOptionFlagLocal \ call Toggle(, 1) -- cgit v1.2.3