I started using Vim as it was first installed and then decided to change the indentation behavior by adding
set tabstop=8 softtabstop=0 expandtab shiftwidth=2 smarttab
to ~/.vimrc
as suggested by https://stackoverflow.com/questions/1878974/redefine-tab-as-4-spaces. However, when I do so, syntax highlighting for my Python files is disabled. I assume it is probably disabled for other languages and that other settings are not set from the default configuration, as well, but haven't tested yet.
How do I keep the rest of the default settings and only modify the above settings for indentation? (Note: I did not have a ~/.vimrc
before this. I created it and added the single line above.)