Home > Backend Development > PHP Tutorial > 如何修改缩进

如何修改缩进

WBOY
Release: 2016-06-13 12:56:41
Original
1093 people have browsed it

怎么修改缩进
最近才用vim写一些东西
缩进很不习惯
我在网上查了下

:set ts=4 sw=4
可以修改缩进
但是退出 在进入的时候
缩进就消失了 
又要输入一次

怎么修改配置  让它一直生效啊......


------解决方案--------------------
修改vimrc配置文件,加入这一行,就可以让它永久保存
这个文件在用户目录下 /home/username/.vimrc
还有一个可能是在VIM安装目录下,或是/etc/vimrc
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template