aboutsummaryrefslogtreecommitdiffstats
path: root/ftdetect/beancount.vim
blob: bf0556d86c35abaeff9c90f3ed6276cadffee7c2 (plain) (blame)
1
2
3
4
5
6
7
8
" 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')