From 3c59126631f390691420f947bc06335f1f1e6834 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Sat, 4 Nov 2017 21:47:47 +1300 Subject: Use spaces around concat dots in VimL consistently --- vim/plugin/toggle_option_flag.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'vim/plugin/toggle_option_flag.vim') diff --git a/vim/plugin/toggle_option_flag.vim b/vim/plugin/toggle_option_flag.vim index 10b4fe7a..8e10165a 100644 --- a/vim/plugin/toggle_option_flag.vim +++ b/vim/plugin/toggle_option_flag.vim @@ -30,7 +30,7 @@ if has('eval') && has('user_commands') " Use 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 ? "-=" : "+="' " Use eval() to perform the option toggle and then print the value execute l:set . ' ' . a:option . l:op . a:flag . ' ' . a:option . '?' -- cgit v1.2.3