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.
Regards,
shankar
: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>
HTH,
Tony.