Questions tagged [plugin-textobj-user]

This plugin has for goal to ease the creation of your own text objects.

Filter by
Sorted by
Tagged with
6 votes
3 answers
2k views

Is there a way to "move to the beginning of the next text object"?

Suppose I have a defined text object. For example, I have a ii text block which defines all the contiguous lines around the cursor at the same level of indentation or deeper. I know what it means to, ...
preferred_anon's user avatar
2 votes
0 answers
41 views

Do operator ranges/movements/textobjects always overwrite the last visual selection? workaround?

In vim, when I operate on a textobject from a plugin, say the 'inner indent' typed ii from kana/vim-textobj-indent, my last visual selection ('>, '<) is reset to where the operator worked on. ...
simlei's user avatar
  • 113
4 votes
1 answer
157 views

textobj-user: must the patterns be different?

I'm trying to make a text-object that is a paragraph surrounded by lines containing %. To test something simpler, I tried: call textobj#user#plugin('pc', { \ 'code': { \ 'pattern': ['%<', '%'...
Toothrot's user avatar
  • 3,119