diff options
Diffstat (limited to 'vim/plugin')
-rw-r--r-- | vim/plugin/toggle_option_flag.vim | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/vim/plugin/toggle_option_flag.vim b/vim/plugin/toggle_option_flag.vim index 5376a279..dd7c95f7 100644 --- a/vim/plugin/toggle_option_flag.vim +++ b/vim/plugin/toggle_option_flag.vim @@ -36,11 +36,11 @@ function! s:Toggle(option, flag, local) " :execute to assign -= or += to l:op for the option toggle " (I couldn't get {curly braces} indirection to work) - let l:op = '' - execute 'let l:op = &' . a:option . ' =~# a:flag ? "-=" : "+="' + let l:operation = '' + execute 'let l:operation = &' . a:option . ' =~# a:flag ? "-=" : "+="' " Build the command strings to set and then show the value - let l:cmd_set = l:set . ' ' . a:option . l:op . a:flag + let l:cmd_set = l:set . ' ' . a:option . l:operation . a:flag let l:cmd_show = l:set . ' ' . a:option . '?' " Run the set and show command strings |