开发者

How to set tab to 4 spaces w/out using expandtab in vi (not vim)

开发者 https://www.devze.com 2023-02-18 16:32 出处:网络
I\'m normally a vim user and now I\'m forced to use vi.Is there a way to set tabs to 4 spaces?I\'m not talking about setting tabspace=4, but actually setting a tab to equal 4 individual spaces (thi开发

I'm normally a vim user and now I'm forced to use vi. Is there a way to set tabs to 4 spaces? I'm not talking about setting tabspace=4, but actually setting a tab to equal 4 individual spaces (thi开发者_开发技巧s is normally done in vim using expandtab).


It may not be pretty, but :%s/\t/ /g, where what's between the second group of slashes is four space characters, should work.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号