summaryrefslogtreecommitdiffstats
path: root/autoload
diff options
context:
space:
mode:
Diffstat (limited to 'autoload')
-rw-r--r--autoload/polyglot/detect.vim20
1 files changed, 4 insertions, 16 deletions
diff --git a/autoload/polyglot/detect.vim b/autoload/polyglot/detect.vim
index b630712d..85b9cd6a 100644
--- a/autoload/polyglot/detect.vim
+++ b/autoload/polyglot/detect.vim
@@ -2,10 +2,6 @@
let s:cpo_save = &cpo
set cpo&vim
-func! s:WritePostOnce(fn)
- exe 'au! filetypedetect BufWritePost <buffer> au! filetypedetect BufWritePost <buffer> | ' . a:fn
-endfunc
-
" DO NOT EDIT CODE BELOW, IT IS GENERATED WITH MAKEFILE
func! polyglot#detect#Inp()
@@ -193,9 +189,7 @@ func! polyglot#detect#Pm()
let &ft = g:filetype_pm | return
endif
if polyglot#shebang#Detect() | return | endif
- setf perl
- call s:WritePostOnce('call polyglot#detect#Pm()')
- return
+ set ft=perl | return
endfunc
func! polyglot#detect#Pl()
@@ -216,9 +210,7 @@ func! polyglot#detect#Pl()
let &ft = g:filetype_pl | return
endif
if polyglot#shebang#Detect() | return | endif
- setf perl
- call s:WritePostOnce('call polyglot#detect#Pl()')
- return
+ set ft=perl | return
endfunc
func! polyglot#detect#T()
@@ -241,9 +233,7 @@ func! polyglot#detect#T()
let &ft = g:filetype_t | return
endif
if polyglot#shebang#Detect() | return | endif
- setf perl
- call s:WritePostOnce('call polyglot#detect#T()')
- return
+ set ft=perl | return
endfunc
func! polyglot#detect#Tt2()
@@ -270,9 +260,7 @@ func! polyglot#detect#Html()
set ft=xhtml | return
endif
endfor
- setf html
- call s:WritePostOnce('call polyglot#detect#Html()')
- return
+ set ft=html | return
endfunc
" DO NOT EDIT CODE ABOVE, IT IS GENERATED WITH MAKEFILE