From 7bdd63e5b0268608108b345062a42783232b1a5d Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Sat, 4 Aug 2018 20:25:51 +1200 Subject: Remove illegal :wincmd range prefix Vim 7 doesn't allow a window prefix for :windo, so just break it into two steps instead. --- vim/plugin/cursorline_current.vim | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3