Sublime Forum

Can indents be specified separately from tab stops

#1

I’m currently trying out Sublime 2 as a possible replacement for my current favoured text editor (vim).

I’ve hit one configuration problem - is there any way to tell Sublime 2 what indent to use in auto-indent other than by setting the tab stops to that value? The two are quite separate things, but Sublime 2 doesn’t seem to have a setting for specifying indents and just uses whatever you have tab spaces set to.

Personally, I don’t use tab characters because since people started changing them from 8 spaces you never know what they are expected to be. Nonetheless, I sometimes have to edit files which contain them and thus need to have them set to 8 to get sensible results. However, I don’t want to use 8 as my indent, because it wastes space.

In vim you can have two separate settings:

set autoindent
set shiftwidth=2
set expandtab
set tabstop=8

Is there any way to achieve the same in Sublime 2?

Many thanks,
John

0 Likes