aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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>
" }}}
" }}}