在.vimrc中添加:

"快捷键入当前日期:
nmap <F1> oDate: <Esc>:read !date<CR>kJ

然后按F1时就会键入当前的日期了。

posted on 2013-05-29 17:17  NeilHappy  阅读(387)  评论(0编辑  收藏  举报