diff options
author | Cody Hiar <codyfh@gmail.com> | 2017-03-24 12:59:32 -0600 |
---|---|---|
committer | Cody Hiar <codyfh@gmail.com> | 2017-03-24 12:59:32 -0600 |
commit | 32888463277c4606856a71cfedc645d3d28c977b (patch) | |
tree | 784cef910d15712784bdb7dd7dfc166414146bb9 /plugin/vim-options.vim | |
parent | 96a2a3c959fdeffd2e0c9443b715b97d27667567 (diff) |
Adding ledger shortcuts
Diffstat (limited to 'plugin/vim-options.vim')
-rw-r--r-- | plugin/vim-options.vim | 9 |
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> |