Skip to content

Commit bb5808f

Browse files
committed
ft detection update
1 parent e7dd10a commit bb5808f

File tree

2 files changed

+15
-15
lines changed

2 files changed

+15
-15
lines changed

ftdetect/efml.vim

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,15 @@
1-
au BufNewFile,BufReadPost,BufNew *.ef setl ft=efml
2-
au BufNewFile,BufReadPost,BufNew *.eft setl ft=efml
3-
au BufNewFile,BufReadPost,BufNew *.efm setl ft=efml
4-
au BufNewFile,BufReadPost,BufNew *.efml setl ft=efml
1+
function! SetEFMLType()
2+
setlocal filetype=efml
3+
" Commenters
4+
" NERDCommenter
5+
if !exists("g:NERDCustomDelimiters")
6+
let g:NERDCustomDelimiters = {}
7+
endif
8+
let g:NERDCustomDelimiters.efml = {"left": "* ", "leftAlt": "*"}
9+
" Commentary.vim
10+
setlocal commentstring=*\ %s
11+
" TComment
12+
silent! call tcomment#type#Define("efml", "* %s")
13+
endfunction
14+
15+
autocmd BufNewFile,BufReadPost,BufNew *.ef,*.eft,*.efm,*.efml call SetEFMLType()

syntax/efml.vim

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -78,15 +78,4 @@ highlight def link efComment Comment
7878
highlight def link efTextEscape Statement
7979
highlight def link efTagEscape Constant
8080

81-
" Commenter Config
82-
" NERDCommenter
83-
if !exists("g:NERDCustomDelimiters")
84-
let g:NERDCustomDelimiters = {}
85-
endif
86-
let g:NERDCustomDelimiters.efml = {'left': '* ', 'leftAlt': '*'}
87-
" Commentary.vim
88-
setlocal commentstring=*\ %s
89-
" TComment
90-
silent! call tcomment#type#Define('efml', '* %s')
91-
9281
let b:current_syntax = "efml"

0 commit comments

Comments
 (0)