From 15689ccbad294e7b6b7c639adeb39b5c35e89dbf Mon Sep 17 00:00:00 2001 From: Guangxiong Lin Date: Wed, 29 Sep 2021 09:47:30 +0800 Subject: Update some configs --- .vim/plugin/ledger.vim | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 .vim/plugin/ledger.vim (limited to '.vim/plugin/ledger.vim') diff --git a/.vim/plugin/ledger.vim b/.vim/plugin/ledger.vim new file mode 100644 index 0000000..0dc2e82 --- /dev/null +++ b/.vim/plugin/ledger.vim @@ -0,0 +1,12 @@ +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 + noremap } /^\d + inoremap =ledger#autocomplete_and_align() + vnoremap :LedgerAlign +endfunction -- cgit v1.2.3