by dpaleka · 5y ago · 0 comments
Let me write a blog post about it. The author of this article in particular might find it useful. Does anyone do something similar?
fun! InsertDate()
let l:line = getline('.')
let l:date = strftime('%Y-%m-%d')
call setline('.',strpart(l:line,0,col('.')).l:date.strpart(l:line,col('.')))
endfun
inoremap <C-l><C-d> <ESC>:call InsertDate()<CR>