1
In most cases, I want to use tabstop=4 while editing files. But for some types of file, like xml file, I want to use tabstop=2.
I added
au filetypedetect FileType xml,html,xhtml,javascript set tabstop=2 softtabstop=2 shiftwidth=2
in my .vimrc file. It works if I am editing only one file. B...