:set et tabstop=2 shiftwidth=2
Above was my initial setting of ~/.vimrc when I created a python(.py) file. I have 'expanded' all the tabs to spaces. My file has grown quite large now. Now I want all the tabs(that already exist in the file and those that I will add further), to have 4 spaces (which was 2 initially). So I tried:
:set et tabstop=4 shiftwidth=4
in both, the current .py file and also by adding(editing) in my ~/.vimrc file. This only affects the changes that I make now. The rest of the file remains as such. Any help appreciated. Help me accept vim I might be on the verge of quitting vim:)