Skip to content

Substituting with newline (\r) #27

Open
@fasterius

Description

@fasterius

Thanks for the awesome plugin! I just recently came across it, but I'm loving it so far! I have a problem, though: I need to do some substitutions with newlines recently, but it didn't work.

With the standard mappings as described in the documentation I can e.g. visually select something I want to replace with newline (, was what I was working on at the moment), followed by <leader>sip to replace inside the current paragraph. This gives me the prompt and I can type \r. This replace with the text \r rather than a newline.

If I do the equivalent in vanilla vim (visual selection + :s/, /\r/g) it works just fine and newlines are correctly inserted.

Should I be typing something other than \r to insert newlines, or am I missing something stupid?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions