aboutsummaryrefslogtreecommitdiff
path: root/vim/plugin
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2018-08-04 20:27:24 +1200
committerTom Ryder <tom@sanctum.geek.nz>2018-08-04 20:27:24 +1200
commit80576742815e5374f4d097229b3ff7ff6a9dc6a5 (patch)
treececa0a68beb2797828f2f23451768f64875f084e /vim/plugin
parentRemove illegal :wincmd range prefix (diff)
downloaddotfiles-80576742815e5374f4d097229b3ff7ff6a9dc6a5.tar.gz
dotfiles-80576742815e5374f4d097229b3ff7ff6a9dc6a5.zip
Remove conditionals for 'cursorline' hooks
The version check for Vim 7 and the feature checks for +autocmd and +windows should be good enough.
Diffstat (limited to 'vim/plugin')
-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