1

I have my tab set to 4 spaces with :set tabstop=4.

Now I want to highlight multiple lines and tab them, or indent all them 4 spaces. If I highlight the lines and do >, it seems to indent them more than 4 spaces.

How can I simply indent multiple lines a given number of spaces?

  • Yup. Question isn't the same, but the info in that answer helped answer this question. – Drew Jun 7 '18 at 18:36
0

The solution is

:set shiftwidth=4

which will cause > to result in a 4-space indent.

| improve this answer | |

Not the answer you're looking for? Browse other questions tagged or ask your own question.