diff options
Diffstat (limited to '.vim/plugins/ledger.plug')
-rw-r--r-- | .vim/plugins/ledger.plug | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/.vim/plugins/ledger.plug b/.vim/plugins/ledger.plug new file mode 100644 index 0000000..b3a1e25 --- /dev/null +++ b/.vim/plugins/ledger.plug @@ -0,0 +1,14 @@ +Plug 'ledger/vim-ledger', {'for': 'ledger'} + +let g:ledger_bin = 'ledger' +let g:ledger_align_at = 50 +let g:ledger_commodity_before = 0 + +au FileType ledger call s:ledger_keymap() + +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 |