diff options
Diffstat (limited to '')
-rw-r--r-- | ftdetect/beancount.vim | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/ftdetect/beancount.vim b/ftdetect/beancount.vim new file mode 100644 index 0000000..bf0556d --- /dev/null +++ b/ftdetect/beancount.vim @@ -0,0 +1,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') |