标题: vi paste problem [打印本页] 作者: wrl 时间: 2009-05-06 17:15 标题: vi paste problem i encountered a vi paste problem on aix platform. when i copied some sources from windows and then pasted it into a vi window, many <TAB>s were inserted automatically in front of each line (i.e., one tab for line1 and two tabs for line2 and etc). but this problem cannot be simulated on linux platform.
anybody knows how to solve it? thanks in advance.作者: 我是DBA 时间: 2009-05-06 17:41
set paste作者: wrl 时间: 2009-05-06 17:54
dear warrior, the aix 5.3 returns
"ex: 0602-093 paste is not a recognized option. Use set all to see all options."
after received your command.
any more comment?作者: yy_galois 时间: 2009-05-06 17:56
*'paste'* *'nopaste'*
'paste' boolean (default off)
global
{not in Vi}
Put Vim in Paste mode. This is useful if you want to cut or copy
some text from one window and paste it in Vim. This will avoid
unexpected effects.
Setting this option is useful when using Vim in a terminal, where Vim
cannot distinguish between typed text and pasted text. In the GUI, Vim
knows about pasting and will mostly do the right thing without 'paste'
being set. The same is true for a terminal where Vim handles the
mouse clicks itself.作者: yy_galois 时间: 2009-05-06 17:57
set nocompatible作者: 我是DBA 时间: 2009-05-06 18:00 标题: 回复 #5 yy_galois 的帖子 这个不错,学习了,强大。作者: wrl 时间: 2009-05-07 11:01
:set nocompatible
ex: 0602-093 compatible is not a recognized option. Use set all to see all opti
ons.
[Press return to continue]作者: yy_galois 时间: 2009-05-07 11:31
你安装的是vi