From acad3afbb2fc28a7db62a41045ead6dbf31d45b2 Mon Sep 17 00:00:00 2001 From: Guangxiong Lin Date: Fri, 13 Oct 2023 04:37:34 +0800 Subject: Tab may be more useful to formatting --- .vim/after/plugin/ledger.vim | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.vim/after/plugin/ledger.vim b/.vim/after/plugin/ledger.vim index feaae92..b041ec0 100644 --- a/.vim/after/plugin/ledger.vim +++ b/.vim/after/plugin/ledger.vim @@ -27,13 +27,11 @@ function! HLedgerEntry() abort endfunction function! s:ledger_keymap() abort - " formatprg is used in vim-ledger. Thus equalprg is used here. - let &l:equalprg = 'hledger -f- print' - noremap { ?^\d noremap } /^\d noremap * :call ledger#transaction_state_toggle(line('.'), ' *!') + nnoremap vip!hledger -f- print inoremap :call HLedgerEntry() endfunction -- cgit v1.2.3