Cute timestamp with vim key mapping

janvier 13, 2008

With this in my .vimrc if I press CTRL and “:” a nice timestamp will automagically be inserted :)

imap ^_ <C-R>=strftime('[ %d/%m/%y %H:%M ] ')<CR>

lovely !

Best tutorial ever on key mappings under vim !!

Tags:

Une réponse vers “Cute timestamp with vim key mapping”


  1. [...] I use this for highlighting timestamps on my text notes. [...]


Laisser un commentaire