diff options
author | Nathan Grigg | 2014-11-21 18:05:52 -0800 |
---|---|---|
committer | Nathan Grigg | 2014-11-21 18:05:58 -0800 |
commit | e1f44049c75f1bcab0b7a198a83dc714cc920504 (patch) | |
tree | d7e024acff9db8972dd386a718cd063369f02a3b /ftplugin | |
parent | da668bd5c415269bf086461d7ee61b195d39e5f2 (diff) | |
download | vim-beancount-e1f44049c75f1bcab0b7a198a83dc714cc920504.tar.gz |
Remove personal stuff that other people won't use.
Diffstat (limited to 'ftplugin')
-rw-r--r-- | ftplugin/beancount.vim | 23 |
1 files changed, 3 insertions, 20 deletions
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(<line1>, <line2>) - -" Align commodity to proper column -inoremap <buffer> . .<C-O>:AlignCommodity<CR> -nnoremap <buffer> <leader>= :AlignCommodity<CR> -vnoremap <buffer> <leader>= :AlignCommodity<CR> - -" 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 <SID>InsertIncoming() - +command! -buffer -range AlignCommodity + \ :call beancount#align_commodity(<line1>, <line2>) +" Omnifunc for account completion. setl omnifunc=beancount#complete_account |