diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2017-11-06 11:50:27 +1300 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2017-11-06 11:50:27 +1300 |
commit | 3c72b4439f16a45871a56a7b233223c0ecdd6af7 (patch) | |
tree | 03dd02755b6699f26a62865873eb6edba1c04853 /vim/plugin | |
parent | Separate command building from execution in toggle (diff) | |
download | dotfiles-3c72b4439f16a45871a56a7b233223c0ecdd6af7.tar.gz dotfiles-3c72b4439f16a45871a56a7b233223c0ecdd6af7.zip |
Rename l:op to l:operation for clarity
Just to avoid confusing it with something like l:option.
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 |