diff options
author | Tucker Evans <tuckerevans24@gmail.com> | 2018-09-02 15:55:33 -0400 |
---|---|---|
committer | Tucker Evans <tuckerevans24@gmail.com> | 2018-09-02 15:55:33 -0400 |
commit | b101cf7f895a4e420f171486970688e649738367 (patch) | |
tree | 7b6a30aaab21b4ba5202c25a5a42edb49a502d9a /vim/.vimrc | |
parent | 0bb0e49021e267713986240333d0cffe936f8dac (diff) | |
parent | d071b1b3c57261b3828b4dd654fb22a48b24808e (diff) |
Merge branch 'master' of ssh://git.tuckerevans.com/srv/git/public/dotfiles into devon
Diffstat (limited to 'vim/.vimrc')
-rw-r--r-- | vim/.vimrc | 12 |
1 files changed, 10 insertions, 2 deletions
@@ -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 |