diff options
author | Adam Stankiewicz <sheerun@sher.pl> | 2020-09-30 01:22:44 +0200 |
---|---|---|
committer | Adam Stankiewicz <sheerun@sher.pl> | 2020-09-30 01:22:44 +0200 |
commit | a37e7e29392b9496ffb08258d965515e9cf57a80 (patch) | |
tree | 02b51087f251bb168207a90e92520d02f3e3394b /autoload/polyglot | |
parent | c1aac2e2794006d035c8bb9a8c7037b78e8ecbba (diff) | |
download | vim-polyglot-a37e7e29392b9496ffb08258d965515e9cf57a80.tar.gz vim-polyglot-a37e7e29392b9496ffb08258d965515e9cf57a80.zip |
Reduce startup time by avoiding calling slow au!
Diffstat (limited to 'autoload/polyglot')
-rw-r--r-- | autoload/polyglot/detect.vim | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/autoload/polyglot/detect.vim b/autoload/polyglot/detect.vim index 53086c4e..af143865 100644 --- a/autoload/polyglot/detect.vim +++ b/autoload/polyglot/detect.vim @@ -185,7 +185,7 @@ func! polyglot#detect#Pm() let &ft = g:filetype_pm | return endif if polyglot#shebang#Detect() | return | endif - set ft=perl | au! BufWritePost <buffer> ++once call polyglot#detect#Pm() + set ft=perl | au BufWritePost <buffer> ++once call polyglot#detect#Pm() return endfunc @@ -207,7 +207,7 @@ func! polyglot#detect#Pl() let &ft = g:filetype_pl | return endif if polyglot#shebang#Detect() | return | endif - set ft=perl | au! BufWritePost <buffer> ++once call polyglot#detect#Pl() + set ft=perl | au BufWritePost <buffer> ++once call polyglot#detect#Pl() return endfunc @@ -231,7 +231,7 @@ func! polyglot#detect#T() let &ft = g:filetype_t | return endif if polyglot#shebang#Detect() | return | endif - set ft=perl | au! BufWritePost <buffer> ++once call polyglot#detect#T() + set ft=perl | au BufWritePost <buffer> ++once call polyglot#detect#T() return endfunc @@ -259,6 +259,6 @@ func! polyglot#detect#Html() set ft=xhtml | return endif endfor - set ft=html | au! BufWritePost <buffer> ++once call polyglot#detect#Html() + set ft=html | au BufWritePost <buffer> ++once call polyglot#detect#Html() return endfunc |