My ~/.vimrc
contains the following:
set noet
set ts=8
set sw=8
When I open vim without arguments:
:set et?
-> noexpandtab
and
:set sw?
-> shiftwidth=8
but when I open a file: :e somefile.py
:set et?
-> expandtab
and
:set sw?
-> shiftwidth=4
but editing ~/.vimrc
yields the same results like when I opened vim without arguments
Why does this happen and how to fix it?
:help ftplugin
,:help setlocal