Jump over user-defined text objects in vim

I use kana / vim-textobj-user to define some user objects of the user, but the problem is that I can not jump over them: case in point let's say I use the same indented text object that is displayed aiand ii I want to skip text normally about both ]iand [i now I use a very hacking method of selection and exit from the visual mode so that there is an easy way to do it and have some kind of comparison for all other text-based user facilities. Sort of]{text-object}

+4
source share
2 answers

I use kana / vim-textobj-user to define some custom objects user [...] for example, I use the same text object is indented, which is displayed aiand iiI want to jump text in normal mode about how ]iand[i

Vim has a bunch of built-in commands like ]m, [Metc. So I thought you meant ]i/ [ito move the cursor to the next / previous text object. If so, vim-textobj-user supports both selection and move to a text object since its first release. But it is not automatic. At the very least, you should declare which keys (e.g. ]i/ [i) should be used for commands.

But I wonder about the following sesntence:

, vaio<Esc> vai<Esc>? , / ? , vim-textobj-user API .

, nmap ]i vai<Esc>. .

+1

(, gU) . / , . , vim-textobj-user , .

My CountJump .

+1

Source: https://habr.com/ru/post/1530317/


All Articles