4

(Can someone with more karma please create an "ideavim" tag?)

Right now, indenting is always 4, I'm looking for the equivalent of vim's shiftwidth variable.

It seems to honour the IntelliJ preference for indentation in CoffeeScript, but the same is not happening with SASS. It's always 4 characters, even though the preference is set to 2.

Andrey Vlasovskikh
  • 16,489
  • 7
  • 44
  • 62
mahemoff
  • 44,526
  • 36
  • 160
  • 222

2 Answers2

2

If identation works properly for SASS when IdeaVim plug-in is not used, please file a bug to the plug-in tracker. Otherwise it's not plug-in related issue and should be fixed in IDEA itself, submit a bug here.

CrazyCoder
  • 389,263
  • 172
  • 990
  • 904
0

There is an open bug for shiftwidth having no effect: https://youtrack.jetbrains.com/issue/VIM-1416

Be sure to upvote the bug report to show interest and speed a fix.

A workaround is to set tab behavior per Language via Preferences. For example, the path for Javascript is:

Preferences >> Editor >> Code Style >> Javascript

alanning
  • 5,198
  • 2
  • 34
  • 33