默認Tab為4個空格
set ts=4
set sw=4
set expand tab```
##修改現(xiàn)有文件
####TAB替換為空格:
```:set ts=4
:set expandtab
:%retab!```
####空格替換為TAB:
```:set ts=4
:set noexpandtab
:%retab!```
>加!是用于處理非空白字符之后的TAB挖垛,即所有的TAB害幅,
不加!,則只處理行首的TAB砂吞。
#打賞
如果這篇文章解決了您的問題铛铁,讓我買根煙抽抽隔显。
![支付寶.jpg](http://upload-images.jianshu.io/upload_images/4765606-b13a42b44fd975a7.jpg?imageMogr2/auto-orient/strip%7CimageView2/2/w/340)
![微信.jpg](http://upload-images.jianshu.io/upload_images/4765606-3ad5592b17125067.jpg?imageMogr2/auto-orient/strip%7CimageView2/2/w/340)
最后編輯于 :
?著作權歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者