In vim, the tab is automatically converted to a space.
Source: Internet
Author: User
In vim, the tab is automatically converted to a space. in vim, the tab is sometimes converted to a space. Use the ret command (replacetab ). [Range] ret [AB]! [New-tabstop] www.2cto.com: for example, convert the tabs from the first row to the end of the file into spaces. each tab is replaced by four spaces ....
In vim, the tab is automatically converted to a space. in vim, the tab is sometimes converted to a space. Use the ret command (replace tab ). [Range] ret [AB]! [New-tabstop] www.2cto.com: for example, convert the tabs from the first row to the end of the file into spaces. each tab is replaced by four spaces. : Set expandtab: % ret! 4 If No 4 is specified, replace the current tab width setting with space. Other related commands: set tabstop = 4 set the tab width to 4 characters: set shiftwidth = 4 set the automatic indent to 4 characters: set expandtab replaces the tab input with space: set noexpandtab does not use space to replace the tab input.
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