Smart tabs in vim

Is there a way to do vim handle tabby clicking the following two methods?

  • Insert a regular tab for indentation.
  • Insert spaces to align.

The result of use should look like this ( --->these are tabs, _spaces)

foo() {
--->int_a_____=_2;
--->int_count_=_12;
}
+5
source share
1 answer

There is a Smart Tabs plugin . I do not use it, but it looks like it does what you want.

Edit: , , (, ) SuperTab, . IndentTab, .

+5

All Articles