aboutsummaryrefslogtreecommitdiff
path: root/plugin
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2019-05-13 00:12:46 +1200
committerTom Ryder <tom@sanctum.geek.nz>2019-05-13 00:12:46 +1200
commit296bd0d8aff7a343cf3d0c56eaa633e227bc432b (patch)
tree9d9da4133e5bd4f68abe9a269fc4381ccc771e44 /plugin
parentFirst version (diff)
parentBump VERSION (diff)
downloadvim-vimrc-reload-filetype-296bd0d8aff7a343cf3d0c56eaa633e227bc432b.tar.gz
vim-vimrc-reload-filetype-296bd0d8aff7a343cf3d0c56eaa633e227bc432b.zip
Merge branch 'release/v0.2.0'v0.2.0
* release/v0.2.0: Remove unneeded variable scoping Switch to two-spacing
Diffstat (limited to 'plugin')
-rw-r--r--plugin/vimrc_reload_filetype.vim6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugin/vimrc_reload_filetype.vim b/plugin/vimrc_reload_filetype.vim
index c2587f9..34ff8d7 100644
--- a/plugin/vimrc_reload_filetype.vim
+++ b/plugin/vimrc_reload_filetype.vim
@@ -1,18 +1,18 @@
"
" vimrc_reload_filetype.vim: Add hook to reload active buffer's filetype when
" vimrc reloaded, so that we don't end up indenting four spaces in an open
-" VimL file, etc. Requires Vim 7.1 or 7.0 with patch 187 for SourceCmd.
+" VimL file, etc. Requires Vim 7.1 or 7.0 with patch 187 for SourceCmd.
"
" Author: Tom Ryder <tom@sanctum.geek.nz>
" License: Same as Vim itself
"
-if exists('g:loaded_vimrc_reload_filetype') || &compatible
+if exists('loaded_vimrc_reload_filetype') || &compatible
finish
endif
if !has('autocmd') || !exists('##SourceCmd')
finish
endif
-let g:loaded_vimrc_reload_filetype = 1
+let loaded_vimrc_reload_filetype = 1
" Wrapper function reloads .vimrc and filetypes
function! s:Reload() abort