Skip to content

Commit

Permalink
feat: vim ledger commands
Browse files Browse the repository at this point in the history
  • Loading branch information
howeyc committed Nov 4, 2023
1 parent e92eca7 commit fa9d808
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions vim-ledger/ftplugin/ledger.vim
Original file line number Diff line number Diff line change
Expand Up @@ -63,3 +63,9 @@ if has('autocmd')
autocmd BufWritePre * call _LedgerFormatFile()
augroup END
endif

" Commands for ledger file type:
" insert date
nnoremap <buffer> <localleader>id "=strftime("%Y/%m/%d")<CR>P
" delete posting amount
nnoremap <buffer> <localleader>da $BbelD

0 comments on commit fa9d808

Please sign in to comment.