Sublime Forum

Indents - separate display/input rules

#1

Hello,

Don’t know if it’s a bug or my settings are just wrong. I’m trying to move from (g)vim to SublimeText. I have lots of code edited by many people and the general idea was to use 4 space indents.

I can make Sublime display previous code properly by setting tab_size to 8 as it will display spaces as half-tabs. But I still want to use 4 space indents in new code. I can achieve that by ‘convert tabs to spaces’ but that does what is says, and doing that in SVN controlled environment means generating a lot of meaningless changes.

A solution would be to have Sublime ‘convert tabs to spaces’ but only on the display. In other words I want to:

  • see tabs as 8 spaces,
  • use tabs (tab key and automatic/smart indents) as 4 spaces.

Vim settings are:
tabstop=8
softtabstop=4

So what is (if there is) a Sublime version of Vim’s ‘softtabstop’?

0 Likes