How to modify indentation

Source: Internet
Author: User
How to change the indentation I recently used vim to write something indent is not used to I checked it online: set & nbsp; ts4 & nbsp; sw4 can modify the indent but exit & nbsp; the indent disappears when you enter & nbsp; how to modify the configuration again & nbsp; make it take effect all the time ...... ------ solution-how to modify indentation
Recently I used vim to write something.
Influence
I checked it online.

: Set ts = 4 sw = 4
Indentation can be modified.
However, when you exit
The indentation disappears.
Enter again

How can I modify the configuration to keep it effective ......


------ Solution --------------------
Modify the vimrc configuration file and add this line so that it can be permanently saved.
This file is in the/home/username/. vimrc directory.
Alternatively, it may be in the VIM installation directory or/etc/vimrc

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.