Skip to content

saaguero/vim-textobj-pastedtext

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

vim-textobj-pastedtext

A convenient text object for last pasted text.

Requirements

text-obj-user

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.

About

A convenient text object for last pasted text

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published