Did you try <C-w>J (or <C-w>K) when you are in vertical split and
<C-w>H (<C-w>L) in horizontal?
Best regards,
Karol Samborski
If I would mean switch between panes I would wrote <C-w>j but I wrote
<C-w>J. Use uppercase letters (with capslock or shift).
Regards,
Karol Samborski
:h window-moving
regards,
Christian
" horizontal -> vertical
:windo wincmd K
These will handle multiple vertical or horizontal windows. To make this
even easier, try :TWL with the following plugin:
" twl.vim: Toggle Window Layout
" Author: Charles E. Campbell, Jr.
" Date: Nov 10, 2005
" Version: 1a ASTRO-ONLY
" ---------------------------------------------------------------------
" Load Once: {{{1
if &cp || exists("g:loaded_twl")
finish
endif
let s:keepcpo = &cpo
let g:loaded_twl= "v1a"
set cpo&vim
" ---------------------------------------------------------------------
" Public Interface: {{{1
com! -nargs=0 TWL :call s:ToggleWinLayout()
" ---------------------------------------------------------------------
" ToggleWinLayout: toggles between all-horizontal and all-vertical {{{1
" window layouts. Based on the vimtip
" http://vim.sourceforge.net/tips/tip.php?tip_id=862
" W
" W | W | W <=> W
" W
fun! s:ToggleWinLayout()
" call Dfunc("ToggleWinLayout()")
let curwin= winnr()
if curwin == 1
" try to go down one window
wincmd j
let isvert= winnr() != curwin
wincmd k
else
" try to go up one window
wincmd k
let isvert= winnr() != curwin
wincmd j
endif
if isvert
windo wincmd H
else
windo wincmd K
endif
" call Dret("ToggleWinLayout : (isvert=".isvert.")")
endfun
" ---------------------------------------------------------------------
" Restore cpo: {{{1
let &cpo= s:keepcpo
unlet s:keepcpo
" ---------------------------------------------------------------------
" vim: fdm=marker