From f8177b09626a0ac973912c633d95b604b9024371 Mon Sep 17 00:00:00 2001 From: Nathan Grigg Date: Tue, 7 Oct 2014 10:21:46 -0700 Subject: Add ftdetect --- ftdetect/beancount.vim | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 ftdetect/beancount.vim 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') -- cgit v1.2.3-2-gb3c3