Sometimes I edit others source code where the prevailing style is to use tabs. In this case, I want to keep the existing convention of using literal tabs.
For files I create myself, and files that use spaces as the prevailing indent style, I wish to use that instead.
How can I do this in vim?
Best Answer
You can use something like this in your
~/.vimrc
to adjust to use spaces/tabs as appropriate: