LinuxSir.cn,穿越时空的Linuxsir!

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

怎么在vi编辑中设置自动缩行

[复制链接]
发表于 2010-8-5 13:52:35 | 显示全部楼层 |阅读模式
我在vi中用了set cindent shiftwidth=2设置了自动缩行,可是再打开vi编辑时又不能自动缩行啦,有没有什么方法设置一直都是自动缩行
发表于 2010-8-5 14:26:59 | 显示全部楼层
写到~/.vimrc中
回复 支持 反对

使用道具 举报

 楼主| 发表于 2010-8-5 16:24:15 | 显示全部楼层
我先问下在~!vimrc中是怎么设的
我改成set smartindent
          set  shiftwidth=2
都没用
请问要写成什么才可以
回复 支持 反对

使用道具 举报

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

本版积分规则

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