aboutsummaryrefslogtreecommitdiffstats
path: root/ftplugin
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--ftplugin/beancount.vim10
1 files changed, 2 insertions, 8 deletions
diff --git a/ftplugin/beancount.vim b/ftplugin/beancount.vim
index b6e3540..ab54905 100644
--- a/ftplugin/beancount.vim
+++ b/ftplugin/beancount.vim
@@ -3,17 +3,14 @@ if exists('b:did_ftplugin')
endif
let b:did_ftplugin = 1
-let b:undo_ftplugin = 'setlocal foldmethod< comments< commentstring<'
+let b:undo_ftplugin = 'setlocal foldmethod< formatprg< comments< commentstring<'
setl foldmethod=syntax
+setl formatprg=bean-format\ -c61
setl comments=b:;
setl commentstring=;%s
compiler beancount
-" This variable customizes the behavior of the AlignCommodity command.
-if !exists('g:beancount_separator_col')
- let g:beancount_separator_col = 50
-endif
if !exists('g:beancount_account_completion')
let g:beancount_account_completion = 'default'
endif
@@ -21,9 +18,6 @@ if !exists('g:beancount_detailed_first')
let g:beancount_detailed_first = 0
endif
-command! -buffer -range AlignCommodity
- \ :call beancount#align_commodity(<line1>, <line2>)
-
command! -buffer -range GetContext
\ :call beancount#get_context()