Vim tips: 时间戳快捷键
:map <f2> a<c-r>=strftime("%c")</c-r></f2>
在非编辑模式下,按F2就会在光标位置插入一个当天时间的时间戳
去掉前面的冒号, 加入到.vimrc, 以后用vim的时候就都有这个快捷键了
This entry was posted on Sunday, December 31st, 2006 at 14:47 and is filed under Geek. Find similar posts by selecting any of the following tags: shortcut, tips, vim. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.
Have your say
Fields in bold are required. Email addresses are never published or distributed.
Some HTML code is allowed:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>URIs must be fully qualified (eg: http://www.domainname.com) and all tags must be properly closed.
Line breaks and paragraphs are automatically converted.
Please keep comments relevant. Off-topic, offensive or inappropriate comments may be edited or removed.