aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2019-05-09 10:49:55 +1200
committerTom Ryder <tom@sanctum.geek.nz>2019-05-09 10:49:55 +1200
commit4d1385e8668a82d9c9e5df72e97066e0f3f582c2 (patch)
treed0afd67ea7113acbad0b1047bef53ddeca680f3d
parentSwitch to two-spacing (diff)
downloadvim-cmdwin-ctrlc-4d1385e8668a82d9c9e5df72e97066e0f3f582c2.tar.gz
vim-cmdwin-ctrlc-4d1385e8668a82d9c9e5df72e97066e0f3f582c2.zip
Remove unneeded variable scoping
-rw-r--r--plugin/cmdwin_ctrlc.vim4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugin/cmdwin_ctrlc.vim b/plugin/cmdwin_ctrlc.vim
index b32f832..72a233c 100644
--- a/plugin/cmdwin_ctrlc.vim
+++ b/plugin/cmdwin_ctrlc.vim
@@ -6,13 +6,13 @@
" Author: Tom Ryder <tom@sanctum.geek.nz>
" License: Same as Vim itself
"
-if exists('g:loaded_cmdwin_ctrlc') || &compatible
+if exists('loaded_cmdwin_ctrlc') || &compatible
finish
endif
if !has('autocmd') || v:version < 700
finish
endif
-let g:loaded_cmdwin_ctrlc = 1
+let loaded_cmdwin_ctrlc = 1
" Map Ctrl-C to close the command window and put the current line on a new
" command line of the appropriate type, with the cursor at the end.