aboutsummaryrefslogtreecommitdiff
path: root/vim
diff options
context:
space:
mode:
Diffstat (limited to 'vim')
-rw-r--r--vim/.vimrc8
1 files changed, 8 insertions, 0 deletions
diff --git a/vim/.vimrc b/vim/.vimrc
index 4aeb6f2..1fc49ff 100644
--- a/vim/.vimrc
+++ b/vim/.vimrc
@@ -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