LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 899|回复: 3

怎么去掉VIM 自动套用格式 这个功能

[复制链接]
发表于 2009-11-27 14:30:07 | 显示全部楼层 |阅读模式
忘记什么时候设置了这个功能,现在用起来很不爽,比如我要插入如下数据:

#RewriteRule ^/archiver/((fid|tid)-[\w\-]+\.html)$ /archiver/index.php?$1
RewriteRule ^/forum-([0-9]+)-([0-9]+)\.html$ /forumdisplay.php?fid=$1&page=$2
RewriteRule ^/thread-([0-9]+)-([0-9]+)-([0-9]+)\.html$ /viewthread.php?tid=$1&extra=page\%3D$3&page=$2
RewriteRule ^/space-(username|uid)-(.+)\.html$ /space.php?$1=$2
RewriteRule ^/tag-(.+)\.html$ /tag.php?name=$1
他会自动给第二行也加上#,变成每行都有#号:
#RewriteRule ^/archiver/((fid|tid)-[\w\-]+\.html)$ /archiver/index.php?$1
#RewriteRule ^/forum-([0-9]+)-([0-9]+)\.html$ /forumdisplay.php?fid=$1&page=$2
#RewriteRule ^/thread-([0-9]+)-([0-9]+)-([0-9]+)\.html$ /viewthread.php?tid=$1&extra=page\%3D$3&page=$2
#RewriteRule ^/space-(username|uid)-(.+)\.html$ /space.php?$1=$2
#RewriteRule ^/tag-(.+)\.html$ /tag.php?name=$1
#
找了下发现有几个设置:

set smartindent              " 智能对齐方式

set autoindent              "自动对齐

set cindent           "自动缩进。     
都关掉 好像还是不管用。
大家给瞧瞧~~~~~~~~~~~~
发表于 2009-11-27 16:34:57 | 显示全部楼层
:set paste
回复 支持 反对

使用道具 举报

发表于 2009-11-27 20:00:41 | 显示全部楼层
是一个自动判断注释的东西,在:set里面可以看到,你找找右边包含#这一项的看看。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-12-2 15:10:00 | 显示全部楼层
Post by LaKes;2050258
:set paste


谢谢就是这个 最近很忙 才来贴结果
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表