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