I'm using only TAB for indent, so I configure Vim for using only them:set autoindentset noexpandtabset tabstop=4set shiftwidth=4But some files (.py) still using spaces. I've search for it and found:filetype plugin indent onBut this has not help, and I've try:au FileType python setlocal noexpandtabBut this has help only for python. So how to apply noexpandtab for all file types?
(Vim) How to use TAB for indentation in all file types?
vim;vimrc;indentation
Some vim syntaxes set certain settings when the file is opened. As you've found, you can get around this by using an autocmd to set the setting after the syntax has finished.To get the autocmd to apply on all file types, use a *. For example:autocmd FileType * set noexpandtab