vim-textobj-pastedtext
vim-textobj-pastedtext copied to clipboard
A convenient text object for last pasted text
vim-textobj-pastedtext
A convenient text object for last pasted text.
Requirements
Usage
By default it creates the following mapping:
gb
To change it, modify the g:pastedtext_select_key
variable. For example:
let g:pastedtext_select_key = 'p'
That said, you can use it as if it were any other vim text object. Here are a couple of examples:
-
vgb
Select last pasted text. -
=gb
Re-indent last pasted text. -
dgb
Delete last pasted text. -
gcgb
Comment last pasted text (requires vim-commentary plugin.)
Contributing
You can contribute reporting bugs and/or submitting pull requests.