Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I find out why vim keeps changing my expandtab setting

Tags:

vim

janus

I use vim. Specifically I am using Janus. I have expandtab set. However, during the course of using vim, for some reason, my expandtab setting gets set to noexpandtab, and my files start to gain hard tabs. I have tried typing :verbose set expandtab? but this does not show me anything (specifically, it shows me that noexpandtab is set, but it doesn't show a file that is responsible for setting it).

So I would like to find out:

  • Why my expandtab setting might be changing
  • How I can track down the culprit and prevent it from happening

Thanks

like image 799
jonleighton Avatar asked Jan 17 '12 23:01

jonleighton


1 Answers

Try this

:verb set expandtab?
:verb set et?
:verb set invexpandtab?

expandtab can really be set in a number of ways :/

like image 196
Rook Avatar answered Oct 13 '22 16:10

Rook