3 ms·
unless you prefer tabs, you can add: set expandtab to your .vimrc and then vim will magically insert spaces (according to your tabstop/shiftwidth) instead of
by xiaomai 17y ago
unless you prefer tabs, you can add:
set expandtab
to your .vimrc and then vim will magically insert spaces (according to your tabstop/shiftwidth) instead of real tabs.
:retab will turn all tabs into spaces for a file that already has tabs in it.
- 10ren 17y agothanks! "Vim contains every features you could possibly imagine, and then some. Even when taking this law into account" - 10ren's Law