Why tabs is 3 columns when I am asking it to be 2 columns
I am using macvim. Here is my settings.
if I am in a JavaScript file and if put my cursor at the left most position. Now if I do tab then I move two columns.
If I do the same in a ruby file then I move three columns. How do I fix that.
As you can see 开发者_JS百科in my vimrc I am asking everything to be 2 columns.
Thanks. This is driving me crazy.
You have a problems in your vimrc. Look, this is for all files
" Tabs = 2 spaces
set tabstop=2
" Indent/outdent 2 spaces
set shiftwidth=2
" Tab key indents
set softtabstop=2
And this
au BufReadPre *.rb,*.rake,Rakefile,.autotest set sw=3 sts=3 nu...
Just for ruby
精彩评论