diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2018-08-04 20:25:51 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2018-08-04 20:25:51 +1200 |
commit | 7bdd63e5b0268608108b345062a42783232b1a5d (patch) | |
tree | ff77d9747217c04b33d4a9d85f01383af1e5be67 /vim | |
parent | Require Vim 7 for cursorline_current.vim (diff) | |
download | dotfiles-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.
Diffstat (limited to 'vim')
-rw-r--r-- | vim/plugin/cursorline_current.vim | 3 |
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 |