pythonvimspf13vim

Spf13 VIM tab indentation


I'm trying to set the intendation for Spf13 VIM to tabs. According to the docs this should be done in ~/.vimrc.local. I've created that file and put the following content there:

set noexpandtab
set tabstop=4
set softtabstop=4
set shiftwidth=4

I also tried deleting all the files in ~/.vimviews/. But it doesn't work. It still uses spaces instead of tabs.


Solution

  • Filetype plugins (from $VIMRUNTIME/ftplugin/ or ~/.vim/ftplugin) are executed (when you have :filetype plugin on, a common setting), and some of those override the global indent settings. You can check and find the culprit via

    :verbose set et?
    

    To override the ftplugin's settings, you can put corresponding antidote :setlocal noexpandtab in ~/.vim/after/ftplugin/<filetype>.vim.