aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2019-05-30 20:56:21 +1200
committerTom Ryder <tom@sanctum.geek.nz>2019-05-30 20:56:21 +1200
commit1919ddfcec989210445d64d7ff53be09c54421ba (patch)
treeac8f21ec82439945851a9c067f4a761652f28385
parentRemove support for g:cursorline_current_insert (diff)
downloadvim-cursorline-current-1919ddfcec989210445d64d7ff53be09c54421ba.tar.gz
vim-cursorline-current-1919ddfcec989210445d64d7ff53be09c54421ba.zip
Merge autocmd definitions
-rw-r--r--plugin/cursorline_current.vim8
1 files changed, 2 insertions, 6 deletions
diff --git a/plugin/cursorline_current.vim b/plugin/cursorline_current.vim
index 2920975..db777d1 100644
--- a/plugin/cursorline_current.vim
+++ b/plugin/cursorline_current.vim
@@ -15,12 +15,8 @@ augroup cursorline_current
autocmd!
autocmd VimEnter
\ * call cursorline_current#Load()
- autocmd WinLeave,FocusLost
+ autocmd InsertEnter,WinLeave,FocusLost
\ * call cursorline_current#Suspend()
- autocmd BufEnter,WinEnter,FocusGained
- \ * call cursorline_current#Restore()
- autocmd InsertEnter
- \ * call cursorline_current#Suspend()
- autocmd InsertLeave
+ autocmd InsertLeave,WinEnter,FocusGained,BufEnter
\ * call cursorline_current#Restore()
augroup END