aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2018-06-16 13:18:35 +1200
committerTom Ryder <tom@sanctum.geek.nz>2018-06-16 13:18:35 +1200
commitea18d6964e3e3ffe15b8958ef81f8c7da873eb0f (patch)
tree286bdd146125f78230369dd4dca6300c5ab3088e
parentMerge branch 'release/v0.2.0' (diff)
downloadvim-insert-suspend-hlsearch-ea18d6964e3e3ffe15b8958ef81f8c7da873eb0f.tar.gz
vim-insert-suspend-hlsearch-ea18d6964e3e3ffe15b8958ef81f8c7da873eb0f.zip
Use `function!` to overwrite
-rw-r--r--plugin/insert_suspend_hlsearch.vim4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugin/insert_suspend_hlsearch.vim b/plugin/insert_suspend_hlsearch.vim
index c177f04..afd8800 100644
--- a/plugin/insert_suspend_hlsearch.vim
+++ b/plugin/insert_suspend_hlsearch.vim
@@ -17,7 +17,7 @@ let g:loaded_insert_suspend_hlsearch = 1
" 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 s:HlsearchSuspend()
+function! s:HlsearchSuspend()
let s:hlsearch_save = &hlsearch
if s:hlsearch_save
set nohlsearch
@@ -26,7 +26,7 @@ endfunction
" Restore the value of 'hlsearch' from the last time s:HlsearchSuspend was
" called.
-function s:HlsearchRestore()
+function! s:HlsearchRestore()
if s:hlsearch_save
set hlsearch
endif