爱咋咋地
分类: LINUX
2025-04-17 19:25:34
:set expandtab
:retab
下面是stackoverflow原帖内容
#########################################################################
Have you tried :h retab ?
Basically you have to have set expandtab in your vimrc (or set manually) and just issue
:retab
And all you tabs should be replaced with appropriate number of spaces.