diff options
Diffstat (limited to '.vim/after/plugin/ledger.vim')
-rw-r--r-- | .vim/after/plugin/ledger.vim | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/.vim/after/plugin/ledger.vim b/.vim/after/plugin/ledger.vim new file mode 100644 index 0000000..77f5f3a --- /dev/null +++ b/.vim/after/plugin/ledger.vim @@ -0,0 +1,14 @@ +let g:ledger_bin = 'ledger' +let g:ledger_align_at = 50 +let g:ledger_commodity_before = 0 +let g:ledger_align_commodity = 1 +let g:ledger_extra_options = '--pedantic --explicit --check-payees' + +function! s:ledger_keymap() abort + noremap { ?^\d<CR> + noremap } /^\d<CR> + inoremap <silent> <Tab> <C-r>=ledger#autocomplete_and_align()<CR> + vnoremap <silent> <Tab> :LedgerAlign<CR> +endfunction + +au FileType ledger call s:ledger_keymap() |