David Thompson wrote:
--- "A.J.Mechelynck" <[EMAIL PROTECTED]> wrote:
If any ex-command splits a window horizontally, you can make it split
vertically by prefixing it with ":vert[ical]" or open a new tab by prefixing
it with ":tab". Since the ":winc[md]" ex-command is equivalent to the Ctrl-W
prefix, and since Ctrl-W Ctrl-] is equivalent to Ctrl-W ] you can do
:vert winc ]
If you want Ctrl-W Ctrl-] to _always_ split vertically, you can use
:map <C-W><C-]> :vertical wincmd ]<CR>
This will leave Ctrl-W ] available to split horizontally as an exception.
Hmm, I found on vim6 this still splits horizontally,
but it works correctly on vim7.
Regards,
David
Searching the version6.txt helpfile (for Vim version 7.0) brings up the
following item:
Patch 6.2.423
Problem: ":vertical wincmd ]" does not split vertically.
Solution: Add "postponed_split_flags".
Files: src/ex_docmd.c, src/globals.h, src/if_cscope.c, src/tag.c
If your "vim6" is earlier than 6.2.423 then IMHO it seriously needs an upgrade
(Vim 6.3 and 6.4 were released before 7.0 became the "official" stable build.)
Best regards,
Tony.