Linux System set tab indent to 4 characters

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.