I'm using Janus for vim and am really liking it, but I can't seem to get my preferred tabstop of 4 working right. This is in my .vimrc
set tabstop=4
set shiftwidth=4
set softtabstop=4
set expandtab
Later on I have
filetype plugin indent on
But all of my ruby files keep using the default version of 2, which I just don't like. I've tried following the instructions on this page, including creating a ruby.vim
file in the after folder (and in the indent
folder that janus created). I've added:
au FileType ruby set softtabstop=4 tabstop=4 shiftwidth=4
to my .vimrc, but none of those work.
I can manually call set tabstop
, etc from command mode, which works, but that's not a great solution.
What's missing?
Xavier T's comment provided the answer, but since he didn't actually make an answer, here it is:
Can you try :verbose set tabstop sw softtabstop expandtab ?. It should tell which script is modifying your value of 4.
This lead me to see that autoload/rails.vim
was what was setting the tab spacing back.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With