Charles Campbell wrote:
> Christian Brabandt wrote:
> > Hi Bram!
> >
> > On Di, 02 Aug 2011, Bram Moolenaar wrote:
> >
> >
> >> Christian Brabandt wrote:
> >>
> >>
> >>> this patch fixes this issue from the todo list:
> >>>
> >>>
> >>> ,----
> >>> | 8 Add a command to jump to the next character highlighted with
> >>> | "Error".
> >>> `----
> >>>
> >>> It implements the [e and ]e movement commands, which move to the
> >>> previous or next error. And while I was at it, I also made [t ]t move to
> >>> the previous/next item that is highlighted with TODO highlighting.
> >>>
> >> Thanks, I'll put it on the todo list.
> >>
> >> We are running out of command characters, taking two more from the ] and
> >> [ list makes me wonder how many users will use them. Perhaps we should
> >> have one "move to highlight" command with an argument to specify what
> >> kind of highlighting? That would be more future safe.
> >>
> > Like what? Something like ]h plus a char, that identifies the
> > highlighting?
> >
> What about [h and ]h, which would move to the next/previous instance of
> the highlighting group specified in a new vim option; as a suggestion,
> jumphlgroup . This would be instead of [t and ]t, and could be used
> instead of [e and]e, too, I suppose.
That sounds like a good idea. The option can be set depending on the
language, by a filetype plugin. It can be a list of highlight groups, so
that you can tell where ]h and [h stop. You could also make a mapping
that sets the option and then does the ]h, to jump to specific
highlights.
--
CONCORDE: Quickly, sir, come this way!
LAUNCELOT: No! It's not right for my idiom. I must escape more ... more ...
CONCORDE: Dramatically, sir?
LAUNCELOT: Dramatically.
"Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD
/// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ an exciting new programming language -- http://www.Zimbu.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php