0

When using the magrittr package, having a code block that starts and ends on the same level of indentation results in vim formatting all subsequent lines one indent too far.

How do I stop this behavior?

Current:

tmp <- function(x) {
        what <- hey %>% 
        {
                5
        }

                yikes
}

Desired:

tmp <- function(x) {
        what <- hey %>% 
        {
                5
        }

        yay
}

1

Your Answer

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

Browse other questions tagged or ask your own question.