From 32888463277c4606856a71cfedc645d3d28c977b Mon Sep 17 00:00:00 2001 From: Cody Hiar Date: Fri, 24 Mar 2017 12:59:32 -0600 Subject: Adding ledger shortcuts --- plugin/vim-options.vim | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/plugin/vim-options.vim b/plugin/vim-options.vim index e85e44a..e91a6f4 100644 --- a/plugin/vim-options.vim +++ b/plugin/vim-options.vim @@ -166,6 +166,15 @@ nnoremap ee :call SaveSession() function! RestoreSession() :source $SessionDir/session.vim endfunction +" Some very useful shortcuts for editing Ledger entries +" Copy the last entry +nnoremap ll G{jV}y}p10lC +" Copy the current entry to the bottom +nnoremap lb {jV}yGp10lC +" Copy the current entry to the next position +nnoremap ln {jV}y}p10lC +" Jump down from line to replace dollar ammount +nnoremap ld j^f$lC " Snippets nnoremap ,date :-1read !date +\%F nnoremap ,fabfile :-1read $EditorDir/plugged/vim-options/snippets/python/fabfile.py -- cgit v1.2.3