aboutsummaryrefslogtreecommitdiff
path: root/vim/plugin
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2017-11-04 21:47:47 +1300
committerTom Ryder <tom@sanctum.geek.nz>2017-11-04 21:48:01 +1300
commit3c59126631f390691420f947bc06335f1f1e6834 (patch)
tree3c64c327a2708be1aa58b6c1f4b5aa65178412c8 /vim/plugin
parentMerge branch 'release/v0.7.0' (diff)
downloaddotfiles-3c59126631f390691420f947bc06335f1f1e6834.tar.gz
dotfiles-3c59126631f390691420f947bc06335f1f1e6834.zip
Use spaces around concat dots in VimL consistently
Diffstat (limited to 'vim/plugin')
-rw-r--r--vim/plugin/strip_trailing_whitespace.vim2
-rw-r--r--vim/plugin/toggle_option_flag.vim2
2 files changed, 2 insertions, 2 deletions
diff --git a/vim/plugin/strip_trailing_whitespace.vim b/vim/plugin/strip_trailing_whitespace.vim
index 17fff33f..27e82910 100644
--- a/vim/plugin/strip_trailing_whitespace.vim
+++ b/vim/plugin/strip_trailing_whitespace.vim
@@ -49,7 +49,7 @@ if has('eval')
let l:cc = col('.')
" Delete the lines, which will move the cursor
- execute l:lw + 1.',$ delete'
+ execute l:lw + 1 . ',$ delete'
" Return the cursor to the saved position
call cursor(l:lc, l:cc)
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 . '?'