diff --git a/vim/.vim/after/ftplugin/beancount.vim b/vim/.vim/after/ftplugin/beancount.vim new file mode 100644 index 0000000..c5645c8 --- /dev/null +++ b/vim/.vim/after/ftplugin/beancount.vim @@ -0,0 +1,13 @@ +" Create the `b:undo_ftplugin` variable if it doesn't exist +call ftplugined#check_undo_ft() + +" Use a small indentation value on beancount files +setlocal shiftwidth=2 +let b:undo_ftplugin.='|setlocal shiftwidth<' + +" Have automatic padding of transactions so that decimal is on 52nd column +let g:beancount_separator_col=52 + +" Automatic padding for transactions +nnoremap = :AlignCommodity +vnoremap = :AlignCommodity