1

Is it possible to make indenting/unindenting not re-align text, eg:

/*
 * Some Text
 */

Indents to:

    /*
    * Some Text
    */

I would prefer/expect:

    /*
     * Some Text
     */

I saw spacemacs has an option for this, was curious to know if vim does too.

1 Answer 1

2

This is caused by having

set shiftround 

Set in the .vimrc

1
  • 1
    I find shiftround a very useful setting >95% of the time. For the remaining cases, I typically use block insert (select start lines with <C-v>, then use I<Tab><Esc>) to work around it. Commented Aug 25, 2016 at 19:38

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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