开发者

Why tabs is 3 columns when I am asking it to be 2 columns

开发者 https://www.devze.com 2022-12-19 10:56 出处:网络
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.

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

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号