diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2019-06-05 22:26:13 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2019-06-05 22:26:13 +1200 |
commit | a4ba229d16deddd09b2cb60d28958ad142600a52 (patch) | |
tree | 63ad143a2245dbe29fe4ee9f8534f1db2c700407 /plugin | |
parent | Merge branch 'release/v1.0.0' into develop (diff) | |
download | vim-insert-suspend-hlsearch-a4ba229d16deddd09b2cb60d28958ad142600a52.tar.gz vim-insert-suspend-hlsearch-a4ba229d16deddd09b2cb60d28958ad142600a52.zip |
Refactor with dynamic autocmd hook
Diffstat (limited to 'plugin')
-rw-r--r-- | plugin/insert_suspend_hlsearch.vim | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/plugin/insert_suspend_hlsearch.vim b/plugin/insert_suspend_hlsearch.vim index 2a88e8a..4b601e5 100644 --- a/plugin/insert_suspend_hlsearch.vim +++ b/plugin/insert_suspend_hlsearch.vim @@ -16,7 +16,5 @@ let loaded_insert_suspend_hlsearch = 1 augroup insert_suspend_hlsearch autocmd! autocmd InsertEnter * - \ call insert_suspend_hlsearch#Suspend() - autocmd InsertLeave * - \ call insert_suspend_hlsearch#Restore() + \ call insert_suspend_hlsearch#() augroup END |