too bad its only on mac.
I tried looking for a solution using a clipboard manager on linux.
but it only got me part way there. hardest part is adding the date.
looked at some snippet tools and some automation tools.
cb, copyq, clipman, diodon
the vim plugin hugo helper sucks. its too complicated.
almost easier to do manually. (defeats the whole purpose)
I found out you don't need a plugin vims got you covered.
add this to your .vimrc:
" Map <leader>d to insert the current date and time in "YYYY-MM-DD HH:MM:SS" format
nnoremap <leader>d i<C-R>=strftime('%Y-%m-%d %H:%M:%S')<CR><Esc>
No comments:
Post a Comment