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").

":tab" should work in the same places as ":vertical".

I'll add a remark for these split-window modifiers that they don't work
for ":execute" and ":normal".

-- 
Yah, well, we had to carve our electrons out of driftwood we'd
find.  In the winter.  Uphill.  Both ways.

 /// Bram Moolenaar -- [EMAIL PROTECTED] -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\        download, build and distribute -- http://www.A-A-P.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

Reply via email to