diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2019-05-09 10:49:55 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2019-05-09 10:49:55 +1200 |
commit | 4d1385e8668a82d9c9e5df72e97066e0f3f582c2 (patch) | |
tree | d0afd67ea7113acbad0b1047bef53ddeca680f3d | |
parent | Switch to two-spacing (diff) | |
download | vim-cmdwin-ctrlc-4d1385e8668a82d9c9e5df72e97066e0f3f582c2.tar.gz vim-cmdwin-ctrlc-4d1385e8668a82d9c9e5df72e97066e0f3f582c2.zip |
Remove unneeded variable scoping
-rw-r--r-- | plugin/cmdwin_ctrlc.vim | 4 |
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. |