summaryrefslogtreecommitdiffstats
path: root/autoload
diff options
context:
space:
mode:
authorAdam Stankiewicz <sheerun@sher.pl>2020-09-30 01:22:44 +0200
committerAdam Stankiewicz <sheerun@sher.pl>2020-09-30 01:22:44 +0200
commita37e7e29392b9496ffb08258d965515e9cf57a80 (patch)
tree02b51087f251bb168207a90e92520d02f3e3394b /autoload
parentc1aac2e2794006d035c8bb9a8c7037b78e8ecbba (diff)
downloadvim-polyglot-a37e7e29392b9496ffb08258d965515e9cf57a80.tar.gz
vim-polyglot-a37e7e29392b9496ffb08258d965515e9cf57a80.zip
Reduce startup time by avoiding calling slow au!
Diffstat (limited to 'autoload')
-rw-r--r--autoload/polyglot/detect.vim8
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