How to replace tab as spaces in vim?

来源:互联网 发布:淘宝天天特价官网 编辑:程序博客网 时间:2024/05/23 18:28

1. set the options permanently

echo 'set ts=4' >> .exrc
echo 'set shiftwidth=4' >> .exrc
echo 'set sts=4' >> .exrc
echo 'set expandtab' >> .exrc

 

2. set the options every time;

set ts=4
set shiftwidth=4
set sts=4
set expandtab

 

原创粉丝点击