aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2019-05-12 23:18:44 +1200
committerTom Ryder <tom@sanctum.geek.nz>2019-05-12 23:18:44 +1200
commite266986c3a771a959d9461475e32854cdff64bb7 (patch)
treed8e96c9cada81dccfc6d942987287113a5122fd0
parentSwitch to two-spacing (diff)
downloadvim-scroll-next-e266986c3a771a959d9461475e32854cdff64bb7.tar.gz
vim-scroll-next-e266986c3a771a959d9461475e32854cdff64bb7.zip
Remove unneeded variable scoping
-rw-r--r--plugin/scroll_next.vim4
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