you are better than you think

python空格与tab转换

· by thur · Read in about 1 min · (17 Words)
python tabs

vim中

TAB替换为空格:

:set ts=4
:set expandtab
:%retab!

空格替换为TAB:

:set ts=4
:set noexpandtab
:%retab!

批量替换

sed 's/    /\t/g'

Comments