aboutsummaryrefslogtreecommitdiff
path: root/vim/.vimrc
diff options
context:
space:
mode:
Diffstat (limited to 'vim/.vimrc')
-rw-r--r--vim/.vimrc12
1 files changed, 10 insertions, 2 deletions
diff --git a/vim/.vimrc b/vim/.vimrc
index 9077239..1fc49ff 100644
--- a/vim/.vimrc
+++ b/vim/.vimrc
@@ -18,8 +18,16 @@ set listchars=eol:\ ,tab:\|\ ,trail:~,extends:>,precedes:<,space:ยท
map K i<enter><esc>
map W <esc>:WordCount<enter>
-colorscheme default
+colorscheme moonfly
au BufRead,BufNewFile *.go set filetype=go
+au BufRead,BufNewFile *.ldg set filetype=ledger
-set statusline+=%{WordCount#WordCount()}
+function LedgerSort()
+ :%! ledger -f - print --sort 'date, amount'
+ :%LedgerAlign
+ :%s/^ /\t/g
+endfunction
+command LedgerSort call LedgerSort()
+
+filetype plugin on