Home » Questions » Computers [ Ask a new question ]

Vim convert tabs to spaces for one folder

Vim convert tabs to spaces for one folder

I'm working on a project with a friend soon. Given that he cares about these things more than me, I let him choose the indentation. Him being a Ruby fan, he chose two spaces.

Asked by: Guest | Views: 114
Total answers/comments: 1
Guest [Entry]

"Weeks ago, I was facing the same problem and I found this :
Secrets of tabs in vim

As I did for scala, it's easy to adapt this for ruby

vim will also read .vimrc in the current directory (when the exrc option is set in your normal vimrc), which is useful when editing large numbers of source files in the same directory, or to avoid corrupting source files you don't control."