diff options
Diffstat (limited to 'vim/plugin/toggle_option_flag.vim')
-rw-r--r-- | vim/plugin/toggle_option_flag.vim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vim/plugin/toggle_option_flag.vim b/vim/plugin/toggle_option_flag.vim index 43561a25..f83af1cc 100644 --- a/vim/plugin/toggle_option_flag.vim +++ b/vim/plugin/toggle_option_flag.vim @@ -32,7 +32,7 @@ if has('eval') && has('user_commands') " eval() 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 ? "-=" : "+="' + execute 'let l:op = &' . a:option . ' =~# a:flag ? "-=" : "+="' " eval() to perform the option toggle and then print the value execute l:set . ' ' . a:option . l:op . a:flag |