diff options
Diffstat (limited to 'vim')
-rw-r--r-- | vim/.vimrc | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -21,5 +21,13 @@ map W <esc>:WordCount<enter> colorscheme moonfly au BufRead,BufNewFile *.go set filetype=go +au BufRead,BufNewFile *.ldg set filetype=ledger + +function LedgerSort() + :%! ledger -f - print --sort 'date, amount' + :%LedgerAlign + :%s/^ /\t/g +endfunction +command LedgerSort call LedgerSort() filetype plugin on |