diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2019-05-29 02:34:31 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2019-05-29 02:34:31 +1200 |
commit | eb2f8b55288d240aa40e6a08ac2e8cac4a272142 (patch) | |
tree | 6169fa9d6e6b785161be4c318375bb95edc6e597 | |
parent | Correct indenting (diff) | |
download | vim-shebang-change-filetype-eb2f8b55288d240aa40e6a08ac2e8cac4a272142.tar.gz vim-shebang-change-filetype-eb2f8b55288d240aa40e6a08ac2e8cac4a272142.zip |
Use :doautocmd to avoid redundancy
-rw-r--r-- | plugin/shebang_change_filetype.vim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugin/shebang_change_filetype.vim b/plugin/shebang_change_filetype.vim index a5f1ca7..a27cb70 100644 --- a/plugin/shebang_change_filetype.vim +++ b/plugin/shebang_change_filetype.vim @@ -17,6 +17,6 @@ augroup shebang_change_filetype \ call shebang_change_filetype#() if exists('##TextChanged') autocmd TextChanged * - \ call shebang_change_filetype#() + \ doautocmd InsertLeave endif augroup END |