aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2019-05-09 17:41:08 +1200
committerTom Ryder <tom@sanctum.geek.nz>2019-05-09 17:41:08 +1200
commita779a153dbd8cf6e6aaf0836bc6e5dfae17c0c66 (patch)
treef98ee4eafa0fb0683a8eedca3ef43ad5d7ee86c4
parentSwitch to two-spacing (diff)
downloadvim-foldlevelstart-stdin-a779a153dbd8cf6e6aaf0836bc6e5dfae17c0c66.tar.gz
vim-foldlevelstart-stdin-a779a153dbd8cf6e6aaf0836bc6e5dfae17c0c66.zip
Remove unneeded variable scoping
-rw-r--r--plugin/foldlevelstart_stdin.vim4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugin/foldlevelstart_stdin.vim b/plugin/foldlevelstart_stdin.vim
index f8e4d50..37caddc 100644
--- a/plugin/foldlevelstart_stdin.vim
+++ b/plugin/foldlevelstart_stdin.vim
@@ -5,13 +5,13 @@
" Author: Tom Ryder <tom@sanctum.geek.nz>
" License: Same as Vim itself
"
-if exists('g:loaded_foldlevelstart_stdin') || &compatible
+if exists('loaded_foldlevelstart_stdin') || &compatible
finish
endif
if !has('autocmd') || !has('folding') || !exists('##StdinReadPre')
finish
endif
-let g:loaded_foldlevelstart_stdin = 1
+let loaded_foldlevelstart_stdin = 1
" Check if 'foldlevelstart' is non-negative, and set 'foldlevel' to its value
" if it is