Thursday, May 8, 2014

RE: "relative" marks?

Chris Lott wrote:
> Is there a way to set a mark (or similar) that is relative to
> a word? For instance, given the following text:
>
> Foo bar. Baz.
> And more stuff.
>
> I'd like to be able to quickly jump to the space after "bar."
> even if the text has been changed to something like:

You could do a map. The following has a space after the "f".

:nnoremap <F8> `af

Pressing F8 will then jump to the position of mark a, then to
the first space.

John


--
--
You received this message from the "vim_use" 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

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments: