EditPad Lite has a nice feature (CTRL–E, CTRL–I) which inserts a time stamp e.g. ‘2008-09-11 10:34:53’ into your code.
What is the best way to get this functionality in Vim?
(I am using Vim 6.1 on a Linux server via SSH. In the current situation a number of us share a login so I don’t want to create abbreviations in the home directory if there is another built-in way to get a timestamp.)
http://kenno.wordpress.com/2006/08/03/vim-tip-insert-time-stamp/
Tried it out, it works on my mac:
produces:
This:
produces: