On Thursday, October 3, 2013 4:29:11 AM UTC-5, Henry wrote:
> Thanks Ben,
>
> I actually did try
>
> exe 'tjump ' . expand('<cword>')
>
> exe 'tjump ' . expand('<cword>')
>
> initially, but all hell breaks lose with that :)
>
> Looks like
>
> try
>
> exe 'tjump ' . expand('<cword>')
>
> 0tag
>
> Does the trick - at least in the sense that it *always* finds the relevant tag.
Heh, I'm actually realizing the first approach should not re-read the <cword> after the first tjump command, it should store off the expand('<cword>') result and use it twice instead of grabbing the word under the new cursor position.
But the second approach is nicer anyway, so I wouldn't bother trying to get the first to wok.
--
--
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/groups/opt_out.
Thursday, October 3, 2013
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment