aboutsummaryrefslogtreecommitdiff
path: root/autoload/insert_suspend_hlsearch.vim
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2018-07-12 12:44:27 +1200
committerTom Ryder <tom@sanctum.geek.nz>2018-07-12 12:44:27 +1200
commit7421c03392b8dd5075ef205582a56c7eb6f382c2 (patch)
treee3271f1614d8c53c46d6bd1b212f8d56d5b368fa /autoload/insert_suspend_hlsearch.vim
parentMerge branch 'release/v0.5.0' into develop (diff)
downloadvim-insert-suspend-hlsearch-7421c03392b8dd5075ef205582a56c7eb6f382c2.tar.gz
vim-insert-suspend-hlsearch-7421c03392b8dd5075ef205582a56c7eb6f382c2.zip
Remove autoload
Diffstat (limited to 'autoload/insert_suspend_hlsearch.vim')
-rw-r--r--autoload/insert_suspend_hlsearch.vim20
1 files changed, 0 insertions, 20 deletions
diff --git a/autoload/insert_suspend_hlsearch.vim b/autoload/insert_suspend_hlsearch.vim
deleted file mode 100644
index 2638abc..0000000
--- a/autoload/insert_suspend_hlsearch.vim
+++ /dev/null
@@ -1,20 +0,0 @@
-" Initialise option saving variable
-let s:hlsearch = &hlsearch
-
-" Save the current value of the 'hlsearch' option in a script variable, and
-" disable it if enabled. Note that :nohlsearch does not work for this; see
-" :help autocmd-searchpat.
-function! insert_suspend_hlsearch#Suspend() abort
- let s:hlsearch = &hlsearch
- if s:hlsearch
- set nohlsearch
- endif
-endfunction
-
-" Restore the value of 'hlsearch' from the last time s:HlsearchSuspend was
-" called.
-function! insert_suspend_hlsearch#Restore() abort
- if s:hlsearch
- set hlsearch
- endif
-endfunction