On Friday, October 26, 2012 11:35:24 AM UTC-5, Ben Fritz wrote:
> 
>   wincmd j
>   if winnr() == curwindow
>     wincmd k
>   else
>     wincmd p
>   endif
> 

Probably you should put a silent! in front of each of those wincmd lines to 
prevent Vim complaining when the desired movement is not possible.

-- 
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

Reply via email to