aboutsummaryrefslogtreecommitdiff
path: root/vim/.vimrc
diff options
context:
space:
mode:
authorTucker Evans <tuckerevans24@gmail.com>2018-09-02 15:55:33 -0400
committerTucker Evans <tuckerevans24@gmail.com>2018-09-02 15:55:33 -0400
commitb101cf7f895a4e420f171486970688e649738367 (patch)
tree7b6a30aaab21b4ba5202c25a5a42edb49a502d9a /vim/.vimrc
parent0bb0e49021e267713986240333d0cffe936f8dac (diff)
parentd071b1b3c57261b3828b4dd654fb22a48b24808e (diff)
Merge branch 'master' of ssh://git.tuckerevans.com/srv/git/public/dotfiles into devon
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