All Projects → haya14busa → vim-metarepeat

haya14busa / vim-metarepeat

Licence: MIT License
No description, website, or topics provided.

Programming Languages

Vim Script
2826 projects

vim-metarepeat

vim-metarepeat provides an operator (like) mapping which runs dot repeat for every occurence matched by last pattern (@/) in range (specified by motion or textobject).

neovim-metarepeat is inspired by 'Occurrence modifier, preset-occurrence, persistence-selection' feature http://qiita.com/t9md/items/0bc7eaff726d099943eb#occurrence-modifier-preset-occurrence-persistence-selection

But it's not a port of these feature. In similar to vim-mode-plus terms, vim-metarepeat provides 'preset-operation-for-occurence' feature (it's just a operator + 'gn') and provides a way to apply the operation for each occurences in textobject.

anim

This is 1st paragraph abc.
2nd abc also include abc abc abc.
3rd abc include abc abc abc

This is 2nd paragraph abc.
2nd line also include text text text.
3rd abc include abc abc abc
4th abc
  1. gg0/te<CR> (move to first text)
  2. *j0wgo (insert text into @/ and move to line, then pre-set line as well)
  3. cgnabc<Esc> (first operation)
  4. ggVjjjjg. (apply operation to first 5 lines)
  5. jjg.Vj (skip 2nd line in 2nd paragrap and apply operation to the rest of lines)

(with haya14busa/vim-asterisk)

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].