Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
mikepqr opened this issue Nov 25, 2020 · 1 comment
Open

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

mikepqr opened this issue Nov 25, 2020 · 1 comment

Comments

@mikepqr
Copy link

mikepqr commented Nov 25, 2020

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).

@tpope
Copy link
Owner

tpope commented Nov 25, 2020

Yeah, may as well add them.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants