I am a big fan of text objects, and I like their composability. For example, if I have
\label{sec:this-is-a-section}
I can easily copy the sec:this-is-a-section
part by navigating inside, and pressing yi}
and use this, for example, to paste it after a \ref{
somewhere else.
What I am missing is a good way to jump between these two. Intuitively, I want a command that takes a text object (i}
) selects this and searches for it. Does that exist, or is there a succinct way to achieve this?
There is such a thing for the specific case of the iw
text object, namely the *
command. So in a way I wonder if there is a generalization of this.
I am not looking for ways to jump between \label
and \ref
, e.g. with a tag file; these are just example for the purpose of the question.
yi}
), and then press/<Ctrl-r>=<Enter>
to search for it. – PhilippFrank Oct 28 '15 at 10:12"/yi}
to do something along these lines, but unfortunately, it cannot be used withy
andp
, although I wonder why. – Joachim Breitner Oct 28 '15 at 12:20