Re: BUG? :tab wincmd ] doesn't open a new tab

2007-03-11 Thread A.J.Mechelynck

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


Re: BUG? :tab wincmd ] doesn't open a new tab

2007-03-11 Thread Bram Moolenaar

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


BUG? :tab wincmd ] doesn't open a new tab

2007-03-10 Thread A.J.Mechelynck
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

Additional info:
1. Workaround:
:exe tab stag expand(cword)

2. Vim version
VIM - Vi IMproved 7.0 (2006 May 7, compiled Mar  8 2007 18:29:45)
Included patches: 1-214
Compiled by [EMAIL PROTECTED]
Huge version with GTK2-GNOME GUI.  Features included (+) or not (-):
+arabic +autocmd +balloon_eval +browse ++builtin_terms +byte_offset +cindent 
+clientserver +clipboard +cmdline_compl +cmdline_hist
+cmdline_info +comments +cryptv +cscope +cursorshape +dialog_con_gui +diff 
+digraphs +dnd -ebcdic +emacs_tags +eval +ex_extra +extra_search
+farsi +file_in_path +find_in_path +folding -footer +fork() +gettext 
-hangul_input +iconv +insert_expand +jumplist +keymap +langmap +libcall
+linebreak +lispindent +listcmds +localmap +menu +mksession +modify_fname 
+mouse +mouseshape +mouse_dec +mouse_gpm -mouse_jsbterm
+mouse_netterm +mouse_xterm +multi_byte +multi_lang -mzscheme +netbeans_intg 
-osfiletype +path_extra +perl +postscript +printer +profile
+python +quickfix +reltime +rightleft +ruby +scrollbind +signs +smartindent 
-sniff +statusline -sun_workshop +syntax +tag_binary
+tag_old_static -tag_any_white +tcl +terminfo +termresponse +textobjects 
+title +toolbar +user_commands +vertsplit +virtualedit +visual
+visualextra +viminfo +vreplace +wildignore +wildmenu +windows +writebackup 
+X11 -xfontset +xim +xsmp_interact +xterm_clipboard -xterm_save

(etc.)



Best regards,
Tony.
--
I call them as I see them.  If I can't see them, I make them up.
-- Biff Barf