Bram Moolenaar wrote:
Tony Mechelynck wrote:
Ctrl-W ] (or ":wincmd ]" ) splits the window to show the definition of the tag
under the cursor, but prefixing it with :tab doesn't open a new tab:
Reproducible: Always
Steps to reproduce:
1. Place the cursor on a tag (e.g. on an identifier in a program for which
ctags has been run).
2. Type either
:tab wincmd ]
or
:tab exe "norm \<C-W>]"
Actual result:
The (first) file containing the tag definition is opened in a split window.
Expected result:
The file should have been opened in a new tab
Right. It's not difficult to make this work.
Vim 7.0.216 now opens a new tab for
:tab wincmd ]
but not for any of
:tab exe "norm \<C-W>]"
:exe "tab norm \<C-W>]"
:tab norm ^W]
(using Ctrl-V Ctrl-W to enter the latter): all three split the current window
without changing tabs. Is this intended behaviour? If it is, then I guess
doc/tabpage.txt (2006 Nov 18) should be modified near line 77 to mention that
":tab" also doesn't work with ":normal" (in addition to ":diffsplit" and
":diffpatch").
Best regards,
Tony.
--
Paul Revere was a tattle-tale