diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2019-05-09 17:47:30 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2019-05-09 17:47:30 +1200 |
commit | 4e8873296f691b257c0c6a36b0a03c154f600c7c (patch) | |
tree | 75c5e6d9d54c1c8b155ec0370e82243b1b29982e | |
parent | Switch to two-spacing (diff) | |
download | vim-insert-cancel-4e8873296f691b257c0c6a36b0a03c154f600c7c.tar.gz vim-insert-cancel-4e8873296f691b257c0c6a36b0a03c154f600c7c.zip |
Remove unneeded variable scoping
-rw-r--r-- | plugin/insert_cancel.vim | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugin/insert_cancel.vim b/plugin/insert_cancel.vim index 18bd0ac..8ad47e5 100644 --- a/plugin/insert_cancel.vim +++ b/plugin/insert_cancel.vim @@ -8,13 +8,13 @@ " Author: Tom Ryder <tom@sanctum.geek.nz> " License: Same as Vim itself " -if exists('g:loaded_insert_cancel') || &compatible +if exists('loaded_insert_cancel') || &compatible finish endif if v:version < 600 finish endif -let g:loaded_insert_cancel = 1 +let loaded_insert_cancel = 1 " On leaving insert mode, whether normally or via <Plug>(InsertCancel), check " if changenr() exceeds the last time we cached it, and flag that a change has |