Sunday, June 26, 2011

Re: expandtab not working for Ruby

> I've got expandtab set in my .vimrc file, but apparently it's not working. I'd
> never really noticed this because somehow it *is* working when I'm in a Rails
> project, but outside of that I still get tab characters.
>
> I've tried grepping for expandtab, or ruby, but I can't figure this one out, so
> I'm hoping someone knows where or how to look. My vimrc is pasted over here:
> https://gist.github.com/1047562

The first thing to do is ask Vim what's setting it. Try

:verbose set expandtab?

in a situation where it works (e.g. a rails project) and where it
doesn't. Then compare. There are lots of places Vim options can be set:
modelines, vimrc, commandline, indent plugins, etc..

Ben.

--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

No comments: