Kamaraju Kusumanchi wrote:
If I do
ctrl-W ctrl-]
in normal mode, vim splits the current window horizontally. Is there any way
to achieve the same functionality but with window being split vertically
instead of horizontally?
thanks
raju
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.
Best regards,
Tony.