diff options
-rw-r--r-- | vim/config/substitution.vim | 2 | ||||
-rw-r--r-- | vim/plugin/toggle_option_flag.vim | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/vim/config/substitution.vim b/vim/config/substitution.vim index 415665ef..982d25f3 100644 --- a/vim/config/substitution.vim +++ b/vim/config/substitution.vim @@ -5,7 +5,7 @@ nnoremap <silent> \ :<C-U>&&<CR> " Same again for visual mode; we use vnoremap rather than xnoremap to stay -" compatible with old Vims without doing eval() dances +" compatible with old Vims without doing :execute dances vnoremap <silent> \ & \ :<C-U>&&<CR> diff --git a/vim/plugin/toggle_option_flag.vim b/vim/plugin/toggle_option_flag.vim index 2543b8c3..cbe8035e 100644 --- a/vim/plugin/toggle_option_flag.vim +++ b/vim/plugin/toggle_option_flag.vim @@ -17,7 +17,7 @@ let g:loaded_toggle_option_flag = 1 " Internal function to do the toggling function! s:Toggle(option, flag, local) - " Check for weird options, we don't want to eval() anything funny + " Check for weird options, we don't want to :execute anything funny if a:option =~# '[^a-z]' echoerr 'Illegal option name' return @@ -34,12 +34,12 @@ function! s:Toggle(option, flag, local) \ ? 'setlocal' \ : 'set' - " eval() to assign -= or += to l:op for the option toggle + " :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 ? "-=" : "+="' - " eval() to perform the option toggle and then print the value + " :execute to perform the option toggle and then print the value execute l:set . ' ' . a:option . l:op . a:flag execute l:set . ' ' . a:option . '?' |