Linux System set tab indent to 4 characters
Often use Vi/vim friends may encounter, write a script to find that press the TAB key indentation 8 characters (by default is 8 characters), so that the feeling indentation is a bit long, here we can set the next press the TAB key, let it indent 4 characters, it is also more in line with our habits.
Let's take a look at the Setup method below!
(1) Setup methods for Redhat and CentOS systems:
# Vim/etc/virc # VI Setup method, modify configuration file/etc/virc Set tabstop=4 # Add this line in the Virc file; # VIM/ETC/VIMRC # Vim Setup method, modify config file/ETC/VIMRC set tabstop=4 # Add this line in the VIMRC file;
(2) How to set up Ubuntu system:
# vi/etc/vim/vimrc # Modify config file/ETC/VIM/VIMRC set tabstop=4 # Add this line in the VIMRC file;
This article is from the "Ilinux" blog, make sure to keep this source http://shenzhijin.blog.51cto.com/1741240/1863046
Linux System set tab indent to 4 characters