diff options
Diffstat (limited to 'ftdetect')
-rw-r--r-- | ftdetect/beancount.vim | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/ftdetect/beancount.vim b/ftdetect/beancount.vim index bf0556d..a808164 100644 --- a/ftdetect/beancount.vim +++ b/ftdetect/beancount.vim @@ -1,8 +1,4 @@ -" This is to avoid setting ft twice. Taken from vim-ruby. -function! s:setf(filetype) abort - if &filetype !=# a:filetype - let &filetype = a:filetype - endif -endfunction - -au BufNewFile,BufRead *.bean,*.beancount call s:setf('beancount') +augroup beancount + au! + au BufNewFile,BufRead *.bean,*.beancount setf beancount +augroup END |