From e1f44049c75f1bcab0b7a198a83dc714cc920504 Mon Sep 17 00:00:00 2001 From: Nathan Grigg Date: Fri, 21 Nov 2014 18:05:52 -0800 Subject: Remove personal stuff that other people won't use. --- ftplugin/beancount.vim | 23 +++-------------------- 1 file changed, 3 insertions(+), 20 deletions(-) (limited to 'ftplugin/beancount.vim') diff --git a/ftplugin/beancount.vim b/ftplugin/beancount.vim index 277285e..159ad0f 100644 --- a/ftplugin/beancount.vim +++ b/ftplugin/beancount.vim @@ -18,25 +18,8 @@ if !exists("g:beancount_decimal_separator") let g:beancount_decimal_separator = "." endif -command! -range AlignCommodity :call beancount#align_commodity(, ) - -" Align commodity to proper column -inoremap . .:AlignCommodity -nnoremap = :AlignCommodity -vnoremap = :AlignCommodity - -" Insert incoming transactions at the bottom -function! s:InsertIncoming() - let incoming = expand('%:h') . '/incoming.bean' - try - execute '$read' incoming - call system('mv ' . incoming . ' ' . incoming . '~') - catch /:E484/ - echom "Not found: incoming.bean" - endtry -endfunction - -command! -buffer Incoming call InsertIncoming() - +command! -buffer -range AlignCommodity + \ :call beancount#align_commodity(, ) +" Omnifunc for account completion. setl omnifunc=beancount#complete_account -- cgit v1.2.3-2-gb3c3