diff options
-rw-r--r-- | README.md | 2 | ||||
-rw-r--r-- | VERSION | 2 | ||||
-rw-r--r-- | doc/vimrc_reload_filetype.txt | 2 | ||||
-rw-r--r-- | plugin/vimrc_reload_filetype.vim | 6 |
4 files changed, 6 insertions, 6 deletions
@@ -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/ @@ -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 |