aboutsummaryrefslogtreecommitdiff
path: root/plugin/regex_escape.vim
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2019-05-12 21:37:44 +1200
committerTom Ryder <tom@sanctum.geek.nz>2019-05-12 21:37:44 +1200
commit1627350eb8da7b8a80a11b53145c25a61318064b (patch)
tree7211bdd136f689db3aecb92defb7f40e575092e2 /plugin/regex_escape.vim
parentFix a single-space (diff)
downloadvim-regex-escape-1627350eb8da7b8a80a11b53145c25a61318064b.tar.gz
vim-regex-escape-1627350eb8da7b8a80a11b53145c25a61318064b.zip
Remove unneeded variable scoping
Diffstat (limited to 'plugin/regex_escape.vim')
-rw-r--r--plugin/regex_escape.vim4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugin/regex_escape.vim b/plugin/regex_escape.vim
index fb11932..5a44e51 100644
--- a/plugin/regex_escape.vim
+++ b/plugin/regex_escape.vim
@@ -9,13 +9,13 @@
" Author: Tom Ryder <tom@sanctum.geek.nz>
" License: Same as Vim itself
"
-if exists('g:loaded_regex_escape') || &compatible
+if exists('loaded_regex_escape') || &compatible
finish
endif
if v:version < 700
finish
endif
-let g:loaded_regex_escape = 1
+let loaded_regex_escape = 1
" Set up mapping
nnoremap <expr> <Plug>(RegexEscape)