aboutsummaryrefslogtreecommitdiff
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
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
-rw-r--r--README.md2
-rw-r--r--VERSION2
-rw-r--r--doc/vimrc_reload_filetype.txt2
-rw-r--r--plugin/vimrc_reload_filetype.vim6
4 files changed, 6 insertions, 6 deletions
diff --git a/README.md b/README.md
index 7f66b19..aa46047 100644
--- a/README.md
+++ b/README.md
@@ -11,7 +11,7 @@ It also echoes a nice "Reloaded vimrc" message so you know it's working.
License
-------
-Copyright (c) [Tom Ryder][1]. Distributed under the same terms as Vim itself.
+Copyright (c) [Tom Ryder][1]. Distributed under the same terms as Vim itself.
See `:help license`.
[1]: https://sanctum.geek.nz/
diff --git a/VERSION b/VERSION
index 6e8bf73..0ea3a94 100644
--- a/VERSION
+++ b/VERSION
@@ -1 +1 @@
-0.1.0
+0.2.0
diff --git a/doc/vimrc_reload_filetype.txt b/doc/vimrc_reload_filetype.txt
index 03ec7c2..eb9f446 100644
--- a/doc/vimrc_reload_filetype.txt
+++ b/doc/vimrc_reload_filetype.txt
@@ -11,7 +11,7 @@ It also echoes a nice "Reloaded vimrc" message so you know it's working.
REQUIREMENTS *vimrc_reload_filetype-requirements*
-This plugin only loads if 'compatible' is not set. It requires |version-7.1|
+This plugin only loads if 'compatible' is not set. It requires |version-7.1|
(or |version-7.0| with patch 187) for the |SourceCmd| |autocmd-event|.
AUTHOR *vimrc_reload_filetype-author*
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