augment the number of lines on indent

92 views Asked by At

in my .vimrc file, I have set ts=2 and that works - that is, it pushes the text two spaces to the right - when i'm using tab to indent in insert mode.

Indenting with >>, however, pushes the text 7 spaces to the right. How can I control how many spaces >> inserts?

1

There are 1 answers

0
Ingo Karkat On BEST ANSWER

That's controlled by the 'shiftwidth' option; it should be aligned with 'tabstop' to give consistent results:

:set ts=2 sw=2