diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2019-05-12 23:18:44 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2019-05-12 23:18:44 +1200 |
commit | e266986c3a771a959d9461475e32854cdff64bb7 (patch) | |
tree | d8e96c9cada81dccfc6d942987287113a5122fd0 | |
parent | Switch to two-spacing (diff) | |
download | vim-scroll-next-e266986c3a771a959d9461475e32854cdff64bb7.tar.gz vim-scroll-next-e266986c3a771a959d9461475e32854cdff64bb7.zip |
Remove unneeded variable scoping
-rw-r--r-- | plugin/scroll_next.vim | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugin/scroll_next.vim b/plugin/scroll_next.vim index 0cb23dc..8f09b24 100644 --- a/plugin/scroll_next.vim +++ b/plugin/scroll_next.vim @@ -5,13 +5,13 @@ " Author: Tom Ryder <tom@sanctum.geek.nz> " License: Same as Vim itself " -if exists('g:loaded_scroll_next') || &compatible +if exists('loaded_scroll_next') || &compatible finish endif if v:version < 600 finish endif -let g:loaded_scroll_next = 1 +let loaded_scroll_next = 1 " Check visibility of last line (Vim >=7.0) or cursor presence on last line " and flick to :next if appropriate, or just page forward with PageDown |