[问题]VIM怎么插入当前时间呢?编写插件有资料吗?
-
- 帖子: 7
- 注册时间: 2008-06-28 15:46
[问题]VIM怎么插入当前时间呢?编写插件有资料吗?
如标题。谢谢
- fortruth
- 帖子: 1795
- 注册时间: 2005-11-06 1:51
- 来自: 七彩云世界
- 联系:
-
- 帖子: 723
- 注册时间: 2006-04-11 9:01
好像是
!command就表示在vim里运行shell命令,r是读取
代码: 全选
:r !date
I would love to change the world, but they won't give me the source code.
http://hi.baidu.com/wienerlee
http://hi.baidu.com/wienerlee
- xxxcjr
- 帖子: 102
- 注册时间: 2007-01-01 9:03
Re: [问题]VIM怎么插入当前时间呢?编写插件有资料吗?
map <F6> <Esc>O<c-r>=strftime("%Y-%m-%d %H:%M:%S")