Hi,

On 6/16/06, A.J.Mechelynck <[EMAIL PROTECTED]> wrote:
SHANKAR R-R66203 wrote:
> Hi All,
>    I am using tags very heavily.
>    I am used to open the files in the same window or split window using tags.
>    How to open a file "for a tag under the cursor" in a new tabpage.
>
        :tab wincmd ]

see
        :help :tab
        :help :wincmd
        :help CTRL-W_]

Explanation:
        - If :<command> opens a new window, then :tab <command> opens a new tab
instead
        - :wincmd <keys> is an Ex-command which does the same as the
Normal-mode command Ctrl-W <keys>
        - Ctrl-W ] goes to the tag under the cursor in a new window.

Note: If you use this command often, you may want to define a mapping,
either (a) for the whole command:

        :map <F9> :tab wincmd ]<CR>

or (b) for the prefix

        :map <F9> :tab wincmd<Space>


Just wanted to add a note to the above description that when you pop
the tag stack using CTRL-T, you will not go back to the previous
tab. Instead the file will be opened in the current tab itself.

- Yegappan

Reply via email to