sponsor Vim development Vim logo Vim Book Ad

Yankitute : Regex powered yank+substitute

 script karma  Rating 6/3, Downloaded by 1614  Comments, bugs, improvements  Vim wiki

created by
Idan Arye
script type
GitHub repository: https://github.com/idanarye/vim-yankitute

Yankitute combines the yank and substitute Vim commands into one. Like substitute, it searches for a pattern in the buffer and transforms all matches using a format string supplied by the user. But instead of replacing the text in the buffer with the transformed matches, it acts like yank and copies the transformed matches into a register.
install details

rate this script Life Changing Helpful Unfulfilling 
script versions (upload new version)

Click on the package to download.

package script version date Vim version user release notes
yankitute_v1.1.0.zip 1.1.0 2015-07-04 7.3 Idan Arye Use :substitute behind the scenes:
- more :s_flags can be handled
- respects gdefault
- pattern can use \zs and \ze
- replacement can use sub-replacement aka \=
- provide error detection
yankitute_v1.0.0.zip 1.0.0 2013-09-11 7.0 Idan Arye Initial upload
ip used for rating:

If you have questions or remarks about this site, visit the vimonline development pages. Please use this site responsibly.
Questions about Vim should go to the maillist. Help Bram help Uganda.
Vim at Github