Skip to content

Add >gp etc. to paste and leave cursor after text #211

@mikepqr

Description

@mikepqr

I know I can create mappings for this myself, but I wonder if these would be useful additions:

*>gp*    Paste after linewise, increasing indent, leave the cursor after the new text
*>gP*    Paste before linewise, increasing indent, leave the cursor after the new text
*<gp*    Paste after linewise, decreasing indent, leave the cursor after the new text
*<gP*    Paste before linewise, decreasing indent, leave the cursor after the new text
*=gp*    Paste after linewise, reindenting, leave the cursor after the new text
*=gP*    Paste before linewise, reindenting, leave the cursor after the new text

They are essentially gp variants of the existing unimpaired p mappings, which leave the cursor after the new text (by analogy with vim's gp builtin).

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