aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2019-05-12 16:29:29 +1200
committerTom Ryder <tom@sanctum.geek.nz>2019-05-12 16:29:29 +1200
commite49f87caa155afd7a9ea2d60f94e036b8bf09b1b (patch)
tree2d1f74a5a3b2b20ebf5b50a1e8fbe51881b4a82a
parentHandle :lhelpgrep correctly by doing nothing (diff)
downloadvim-quickfix-auto-open-e49f87caa155afd7a9ea2d60f94e036b8bf09b1b.tar.gz
vim-quickfix-auto-open-e49f87caa155afd7a9ea2d60f94e036b8bf09b1b.zip
Remove unneeded variable scoping
-rw-r--r--plugin/quickfix_auto_open.vim4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugin/quickfix_auto_open.vim b/plugin/quickfix_auto_open.vim
index 3b62675..63195da 100644
--- a/plugin/quickfix_auto_open.vim
+++ b/plugin/quickfix_auto_open.vim
@@ -5,13 +5,13 @@
" Author: Tom Ryder <tom@sanctum.geek.nz>
" License: Same as Vim itself
"
-if exists('g:loaded_quickfix_auto_open') || &compatible
+if exists('loaded_quickfix_auto_open') || &compatible
finish
endif
if !has('autocmd') || v:version < 700
finish
endif
-let g:loaded_quickfix_auto_open = 1
+let loaded_quickfix_auto_open = 1
" Open an appropriate quickfix or location list, depending on the command
function! s:Open(command) abort