diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2018-07-14 20:52:49 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2018-07-14 20:52:49 +1200 |
commit | 720b6971850e636912737fe9bcb72fb0d566f344 (patch) | |
tree | 4311fd0fbb3a936021de33172804e16bd72816ef /vim/plugin/reload_vimrc_filetype.vim | |
parent | Merge branch 'release/v1.29.0' (diff) | |
parent | Bump VERSION (diff) | |
download | dotfiles-1.30.0.tar.gz (sig) dotfiles-1.30.0.zip |
Merge branch 'release/v1.30.0'v1.30.0
* release/v1.30.0:
Bump VERSION
Revert "Remove :nohlsearch from vimrc"
Spin off vimrc_reload_filetype.vim
Add mail quote maps for gitcommit and markdown
Expand and comment quoting functions
Change mail quoting to generic autoload function
Remove bell settings from .gvimrc
Diffstat (limited to 'vim/plugin/reload_vimrc_filetype.vim')
-rw-r--r-- | vim/plugin/reload_vimrc_filetype.vim | 23 |
1 files changed, 0 insertions, 23 deletions
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 <tom@sanctum.geek.nz> -" 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 <afile> - \|doautocmd filetypedetect BufRead - \|echomsg 'Reloaded vimrc: '.expand('<afile>') -augroup END |