BUG? :tab wincmd ] doesn't open a new tab
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 \]" 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("") 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
Re: BUG? :tab wincmd ] doesn't open a new tab
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 \]" > > 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. -- You had connectors? Eeee, when I were a lad we 'ad to carry the bits between the computer and the terminal with a spoon... /// 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///
Re: BUG? :tab wincmd ] doesn't open a new tab
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 \]" 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 \]" :exe "tab norm \]" :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
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 \]" > >> > >> 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 \]" > :exe "tab norm \]" > :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///