aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCody Hiar <codyfh@gmail.com>2017-03-24 12:59:32 -0600
committerCody Hiar <codyfh@gmail.com>2017-03-24 12:59:32 -0600
commit32888463277c4606856a71cfedc645d3d28c977b (patch)
tree784cef910d15712784bdb7dd7dfc166414146bb9
parent96a2a3c959fdeffd2e0c9443b715b97d27667567 (diff)
Adding ledger shortcuts
-rw-r--r--plugin/vim-options.vim9
1 files changed, 9 insertions, 0 deletions
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 <leader>ee :call SaveSession()<CR>
function! RestoreSession()
:source $SessionDir/session.vim
endfunction
+" Some very useful shortcuts for editing Ledger entries
+" Copy the last entry
+nnoremap <leader>ll G{jV}y}p10lC
+" Copy the current entry to the bottom
+nnoremap <leader>lb {jV}yGp10lC
+" Copy the current entry to the next position
+nnoremap <leader>ln {jV}y}p10lC
+" Jump down from line to replace dollar ammount
+nnoremap <leader>ld j^f$lC
" Snippets
nnoremap <leader>,date :-1read !date +\%F<CR>
nnoremap <leader>,fabfile :-1read $EditorDir/plugged/vim-options/snippets/python/fabfile.py<CR>