When using VIM, usually I use new buffer or newtab for opening several files. There some anomally where everytime I open another files, my Python indentation going wrong! I don’t know what happen and try spend several hours to find the problem.
Finally, I got the problem ! See this :
Using setlocal in vimrc, it mean only works on single files only. When you using new tab or new buffers, then your configuration will be ignored!
So what the solution? using “set”. For instance :
Now you will have no prolem with newtab on files or opening several files.