In my ~/.vimrc
I set tab to me 2 spaces long
set shiftwidth=2
set tabstop=2
However when I open a .py
file, tabs are 4 spaces long. I don't have specific configuration for python files. ~/.vim/after
is empty and searching for py
doesn't raise any suspect lines.
Have you ever experienced that? How to solve such a behaviour?
\t
as 4 spaces both when I open an existing file (with tabs for indentation) and when I create a new file with a.py
extentionlet g:python_recommended_style = 0
to override the defaultftplugin/python.vim
(it only keeps default tabs)