Skip to content

Instantly share code, notes, and snippets.

@danielvalentin
Created March 30, 2020 09:34
Show Gist options
  • Save danielvalentin/5f0899b2c5f3bcb2638da93a0e55231d to your computer and use it in GitHub Desktop.
Save danielvalentin/5f0899b2c5f3bcb2638da93a0e55231d to your computer and use it in GitHub Desktop.
nnoremap <expr> gp '`[' . strpart(getregtype(), 0, 1) . '`]'
@danielvalentin
Copy link
Author

Select what you just pasted with gp.
For example, to paste, select and indent, you'd go:
p gp >
Super handy.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment