In my vimrc, I have set expandtab
. When I edit a Tex file, however, Vim inserts tab characters , instead of spaces , when I press tab. I figured noexpandtab
must be set by the TeX ftplugin for some strange reason, but I was wrong. If I type set expandtab?
, it returns noexpandtab
. Also, verbose set expandtab?
reveals that Vim believes my vimrc has instead set noexpandtab
.
Executing verbose set expandtab?
returns noexpandtab Last set from ~/.config/vim/vimrc line 69
.
Line 69 of my vimrc is set expandtab
Is this a bug? I can set expandtab
in my Vim session with a TeX file open and new tabs are spaces as expected. Am I missing something?
set verbose et?
in particular what is the line nb mentioned and what is the content of the.vimrc
in particular at the mentioned line nb (maybe you haveexpandtab
mentioned twice or indirectly)verbose set expandtab?
returnsnoexpandtab Last set from ~/.config/vim/vimrc line 69
. Line 69 of my vimrc isset expandtab
.set verbose et?
when theTeX
buffer is loaded or right after Vim has started? To analyze your TeX problem you have to run the command when the focus is on the TeX buffer.