diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2019-05-30 20:54:08 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2019-05-30 20:54:08 +1200 |
commit | 49ebf12cc7182b40737f456663a199d288cedddc (patch) | |
tree | e6d3f943fbe7c31cb1cabcad00306c36cff6bdd9 | |
parent | Strip comments out from plugin file (diff) | |
download | vim-cursorline-current-49ebf12cc7182b40737f456663a199d288cedddc.tar.gz vim-cursorline-current-49ebf12cc7182b40737f456663a199d288cedddc.zip |
Remove support for g:cursorline_current_insert
I don't use it, and I'm not sure it's terribly useful; I might put it
back if there's a good way to leverage the hooks for it.
-rw-r--r-- | doc/cursorline_current.txt | 7 | ||||
-rw-r--r-- | plugin/cursorline_current.vim | 10 |
2 files changed, 4 insertions, 13 deletions
diff --git a/doc/cursorline_current.txt b/doc/cursorline_current.txt index 838c272..772de53 100644 --- a/doc/cursorline_current.txt +++ b/doc/cursorline_current.txt @@ -15,13 +15,6 @@ REQUIREMENTS *cursorline_current-requirements* This plugin only loads if 'compatible' is not set. It requires the |+autocmd| and |+windows| features. -OPTIONS *cursorline_current-options* - - *g:cursorline_current_insert* -Set `g:cursorline_current_insert` to 0 in your |vimrc| if you don't like the -cursor line switching off while you're in insert mode. This option defaults to -1. - AUTHOR *cursorline_current-author* Written and maintained by Tom Ryder <tom@sanctum.geek.nz>. diff --git a/plugin/cursorline_current.vim b/plugin/cursorline_current.vim index cb07ffd..2920975 100644 --- a/plugin/cursorline_current.vim +++ b/plugin/cursorline_current.vim @@ -19,10 +19,8 @@ augroup cursorline_current \ * call cursorline_current#Suspend() autocmd BufEnter,WinEnter,FocusGained \ * call cursorline_current#Restore() - if get(g:, 'cursorline_current_insert', 1) - autocmd InsertEnter - \ * call cursorline_current#Suspend() - autocmd InsertLeave - \ * call cursorline_current#Restore() - endif + autocmd InsertEnter + \ * call cursorline_current#Suspend() + autocmd InsertLeave + \ * call cursorline_current#Restore() augroup END |