Settings for Vim-tab indentation

Source: Internet
Author: User

Vim in the work of a tab width is too large, not changed before the width is 8 characters, want to change to 4, using the following command:

CD ~
vim. VIMRC
Add the following lines: (in parentheses is the command meaning, do not write)
Set shiftwidth=4 (indicates the length of each level indent)
Set Softtabstop=4 (indicates the length of the indent when pressing the backspace bar while in edit mode)

Set Nu (show line number)

Set Autoindent (auto indent)

: Wq
Save exit.
source. VIMRC (Make configuration file effective)

Oak! Oak!

This article is from the "Pzd Chuan Feng" blog, please make sure to keep this source http://xujiafan.blog.51cto.com/10778767/1745855

Settings for Vim-tab indentation

Related Article

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.