免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2089 | 回复: 7
打印 上一主题 下一主题

vi paste problem [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2009-05-06 17:15 |只看该作者 |倒序浏览
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.

论坛徽章:
0
2 [报告]
发表于 2009-05-06 17:41 |只看该作者
set paste

论坛徽章:
0
3 [报告]
发表于 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?

论坛徽章:
0
4 [报告]
发表于 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.

论坛徽章:
0
5 [报告]
发表于 2009-05-06 17:57 |只看该作者
set nocompatible

论坛徽章:
0
6 [报告]
发表于 2009-05-06 18:00 |只看该作者

回复 #5 yy_galois 的帖子

这个不错,学习了,强大。

论坛徽章:
0
7 [报告]
发表于 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]

论坛徽章:
0
8 [报告]
发表于 2009-05-07 11:31 |只看该作者
你安装的是vi

请安装一个vim
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP