1

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.

dan-klasson
  • 13,734
  • 14
  • 63
  • 101

2 Answers2

1

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.

Ingo Karkat
  • 167,457
  • 16
  • 250
  • 324
0

It seems like something very similar to this question I’ve answer a moment ago… vim's tab length is different for .py files.

Community
  • 1
  • 1
Júda Ronén
  • 294
  • 1
  • 10