aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2018-08-04 20:25:51 +1200
committerTom Ryder <tom@sanctum.geek.nz>2018-08-04 20:25:51 +1200
commit7bdd63e5b0268608108b345062a42783232b1a5d (patch)
treeff77d9747217c04b33d4a9d85f01383af1e5be67
parent382f066c7e2cf868c6160fd9a344926ba0c78d7e (diff)
downloaddotfiles-7bdd63e5b0268608108b345062a42783232b1a5d.tar.gz
dotfiles-7bdd63e5b0268608108b345062a42783232b1a5d.zip
Remove illegal :wincmd range prefix
Vim 7 doesn't allow a window prefix for :windo, so just break it into two steps instead.
-rw-r--r--vim/plugin/cursorline_current.vim3
1 files changed, 2 insertions, 1 deletions
diff --git a/vim/plugin/cursorline_current.vim b/vim/plugin/cursorline_current.vim
index a076bd97..d17fc769 100644
--- a/vim/plugin/cursorline_current.vim
+++ b/vim/plugin/cursorline_current.vim
@@ -44,7 +44,8 @@ function! s:Load() abort
" Iterate through all the windows and suspend all but the current one
for l:wnum in range(1, winnr('$'))
if l:wnum != l:wcur
- execute l:wnum . 'windo call s:Suspend()'
+ execute l:wnum . 'wincmd w'
+ call s:Suspend()
endif
endfor