aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2024-07-30 13:42:52 -0300
committerSilvio Rhatto <rhatto@riseup.net>2024-07-30 13:42:52 -0300
commit183e4ba195020a2bfcaaf0b220b109126eff7331 (patch)
tree1ebaeec43df3fb58229184100a900ba966df45fc
parent4320231000d2f3875cc7afa77ccfb9465f87b016 (diff)
downloadvim-183e4ba195020a2bfcaaf0b220b109126eff7331.tar.gz
vim-183e4ba195020a2bfcaaf0b220b109126eff7331.tar.bz2
Fix: improved current date key binding for ChangeLog entries
-rw-r--r--vim.dot.link/plugin/key_mappings.vim6
1 files changed, 5 insertions, 1 deletions
diff --git a/vim.dot.link/plugin/key_mappings.vim b/vim.dot.link/plugin/key_mappings.vim
index 03a3b51..3284800 100644
--- a/vim.dot.link/plugin/key_mappings.vim
+++ b/vim.dot.link/plugin/key_mappings.vim
@@ -248,6 +248,10 @@ noremap <leader>c :call BufferCleansing()<CR>
"map <leader>d :0put =strftime('%Y-%m-%d')<CR>
nnoremap <leader>d i<C-R>=strftime('%Y-%m-%d')<CR>
inoremap <leader>d <C-R>=strftime('%Y-%m-%d')<CR>
-map <leader>e :put =strftime('## %Y-%m-%d')<CR>
+" }}}
+
+" Insert the current date in format useful for ChangeLog.md entries {{{
+"nnoremap <leader>e :put =strftime('## %Y-%m-%d ')<CR>
+nnoremap <leader>e o<CR><C-R>=strftime('## %Y-%m-%d - ')<CR>
" }}}
" }}}