From 183e4ba195020a2bfcaaf0b220b109126eff7331 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Tue, 30 Jul 2024 13:42:52 -0300 Subject: Fix: improved current date key binding for ChangeLog entries --- vim.dot.link/plugin/key_mappings.vim | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 c :call BufferCleansing() "map d :0put =strftime('%Y-%m-%d') nnoremap d i=strftime('%Y-%m-%d') inoremap d =strftime('%Y-%m-%d') -map e :put =strftime('## %Y-%m-%d') +" }}} + +" Insert the current date in format useful for ChangeLog.md entries {{{ +"nnoremap e :put =strftime('## %Y-%m-%d ') +nnoremap e o=strftime('## %Y-%m-%d - ') " }}} " }}} -- cgit v1.2.3