aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2019-06-10 22:34:02 +1200
committerTom Ryder <tom@sanctum.geek.nz>2019-06-10 22:34:02 +1200
commit35ae85cdb0d79b0d2d87a6952980010bed6f2646 (patch)
tree5247700d0a525191605ea1057052e10770d97ded
parentSupport tabs on startup as well as windows (diff)
downloadvim-cursorline-current-35ae85cdb0d79b0d2d87a6952980010bed6f2646.tar.gz
vim-cursorline-current-35ae85cdb0d79b0d2d87a6952980010bed6f2646.zip
Backport to Vim 7.0
:tabdo and :windo don't accept ranges in old Vim.
-rw-r--r--plugin/cursorline_current.vim2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugin/cursorline_current.vim b/plugin/cursorline_current.vim
index f775965..97c1550 100644
--- a/plugin/cursorline_current.vim
+++ b/plugin/cursorline_current.vim
@@ -12,5 +12,5 @@ augroup cursorline_current
autocmd VimEnter *
\ tabdo windo doautocmd WinLeave
autocmd VimEnter *
- \ 1 tabdo 1 windo doautocmd WinEnter
+ \ 1 wincmd w | doautocmd WinEnter
augroup END