From efadde49f989a169bb34f1f7024ca661b5ae79cd Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Sat, 14 Jul 2018 20:41:33 +1200 Subject: Spin off vimrc_reload_filetype.vim --- vim/bundle/vimrc_reload_filetype | 1 + vim/plugin/reload_vimrc_filetype.vim | 23 ----------------------- 2 files changed, 1 insertion(+), 23 deletions(-) create mode 160000 vim/bundle/vimrc_reload_filetype delete mode 100644 vim/plugin/reload_vimrc_filetype.vim (limited to 'vim') diff --git a/vim/bundle/vimrc_reload_filetype b/vim/bundle/vimrc_reload_filetype new file mode 160000 index 00000000..34f74601 --- /dev/null +++ b/vim/bundle/vimrc_reload_filetype @@ -0,0 +1 @@ +Subproject commit 34f746015a76fda53b70dda91f81edf41f75d472 diff --git a/vim/plugin/reload_vimrc_filetype.vim b/vim/plugin/reload_vimrc_filetype.vim deleted file mode 100644 index d4f853b8..00000000 --- a/vim/plugin/reload_vimrc_filetype.vim +++ /dev/null @@ -1,23 +0,0 @@ -" -" reload_vimrc_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 (SourceCmd event.) -" -" Author: Tom Ryder -" License: Same as Vim itself -" -if exists('g:loaded_reload_vimrc_filetype') || &compatible - finish -endif -if !has('autocmd') || v:version < 700 || v:version == 700 && !has('patch187') - finish -endif -let g:loaded_reload_vimrc_filetype = 1 - -" This SourceCmd intercepts :source for .vimrc -augroup reload_vimrc_filetype - autocmd SourceCmd $MYVIMRC - \ source - \|doautocmd filetypedetect BufRead - \|echomsg 'Reloaded vimrc: '.expand('') -augroup END -- cgit v1.2.3