Sunday, April 4, 2010

Re: How to automatically open a window when using tags?

On 04/04/10 23:29, Peng Yu wrote:
> I use ctrl+] to trace the tags. But it uses the same window. I want
> show both the original window and the new window. Could you let me
> know what command to use to preserve the old window?
>

Help windows all reuse the same window by design; but I suppose you
could do something like

:noremap <C-]> <C-W>s<C-]>

to split the window immediately before jumping to the tag. See :help
:split (and see which Normal-mode commands have the same effect). Beware
that this will also multiply your help windows, since program tags and
help tags use essentially the same mechanism internally.


Best regards,
Tony.
--
Talking much about oneself can also be a means to conceal oneself.
-- Friedrich Nietzsche

--
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

To unsubscribe, reply using "remove me" as the subject.

No comments: