Chinaunix首页 | 论坛 | 博客
  • 博客访问: 292856
  • 博文数量: 108
  • 博客积分: 4260
  • 博客等级: 上校
  • 技术积分: 1145
  • 用 户 组: 普通用户
  • 注册时间: 2008-02-21 13:22
文章分类

全部博文(108)

文章存档

2011年(40)

2010年(22)

2009年(17)

2008年(29)

我的朋友

分类: LINUX

2011-03-17 15:47:30

Paste toggle

Put the following in your  (change to whatever key you want):

set pastetoggle=

To paste from another application:

  • Start insert mode.
  • Press F2 (toggles the 'paste' option on).
  • Use your terminal to paste text from the clipboard.
  • Press F2 (toggles the 'paste' option off).

Then the existing indentation of the pasted text will be retained.

阅读(430) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~