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.

2

This is caused by having

set shiftround 

Set in the .vimrc

  • 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. – Martin Tournoij Aug 25 '16 at 19:38

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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