aboutsummaryrefslogtreecommitdiff
path: root/vim
diff options
context:
space:
mode:
Diffstat (limited to 'vim')
-rw-r--r--vim/plugin/cursorline_current.vim24
1 files changed, 9 insertions, 15 deletions
diff --git a/vim/plugin/cursorline_current.vim b/vim/plugin/cursorline_current.vim
index d17fc769..1668b69a 100644
--- a/vim/plugin/cursorline_current.vim
+++ b/vim/plugin/cursorline_current.vim
@@ -56,23 +56,17 @@ endfunction
" Set up hooks for toggling 'cursorline'
augroup cursorline_current
- autocmd!
+ autocmd!
- " Turn off 'cursorline' for other windows on load
- if exists('##VimEnter')
- autocmd VimEnter * call s:Load()
- endif
+ " Turn off 'cursorline' for other windows on load
+ autocmd VimEnter * call s:Load()
- " Turn off 'cursorline' when leaving a window
- if exists('##WinEnter') && exists('##WinLeave')
- autocmd WinLeave * call s:Suspend()
- autocmd WinEnter * call s:Restore()
- endif
+ " Turn off 'cursorline' when leaving a window
+ autocmd WinLeave * call s:Suspend()
+ autocmd WinEnter * call s:Restore()
- " Turn off 'cursorline' when in insert mode
- if exists('##InsertEnter') && exists('##InsertLeave')
- autocmd InsertEnter * call s:Suspend()
- autocmd InsertLeave * call s:Restore()
- endif
+ " Turn off 'cursorline' when in insert mode
+ autocmd InsertEnter * call s:Suspend()
+ autocmd InsertLeave * call s:Restore()
augroup END