aboutsummaryrefslogtreecommitdiff
path: root/plugin/insert_suspend_hlsearch.vim
diff options
context:
space:
mode:
Diffstat (limited to 'plugin/insert_suspend_hlsearch.vim')
-rw-r--r--plugin/insert_suspend_hlsearch.vim6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugin/insert_suspend_hlsearch.vim b/plugin/insert_suspend_hlsearch.vim
index 5d199f7..635ed8e 100644
--- a/plugin/insert_suspend_hlsearch.vim
+++ b/plugin/insert_suspend_hlsearch.vim
@@ -6,19 +6,19 @@
" Author: Tom Ryder <tom@sanctum.geek.nz>
" License: Same as Vim itself
"
-if exists('g:loaded_insert_suspend_hlsearch') || &compatible
+if exists('loaded_insert_suspend_hlsearch') || &compatible
finish
endif
if !has('autocmd') || !has('extra_search') || v:version < 700
finish
endif
-let g:loaded_insert_suspend_hlsearch = 1
+let loaded_insert_suspend_hlsearch = 1
" Initialise option saving variable
let s:hlsearch_save = &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
+" disable it if enabled. Note that :nohlsearch does not work for this; see
" :help autocmd-searchpat.
function! s:Suspend() abort
let s:hlsearch_save = &hlsearch