On Thu, Apr 13, 2006 at 08:34:48PM -0400, James Vega wrote: > On Fri, Apr 14, 2006 at 01:18:19AM +0200, Wojciech Pilorz wrote: > > 2006/4/13, Bram Moolenaar <[EMAIL PROTECTED]>: > > > > > > Wojtek Pilorz wrote: > > > > > > > I have build gvim 7.0d on Fedora Core 4 as > > > > 'Big version with GTK2 GUI.' > > > > > > > > I have noticed the following behaviour with multple tab pages (gvim); > > > > > > > > 1. You can switch with Ctrl-Pgup - Ctrl-PgDown when in normal mode; > > > > In insert and replace mode you need to type Ctrl-O Ctrl-Pgup/PgDown > > > > (perhaps should be documented?) > > > > > > It is documented. > > I could not find that, at least in tabpage.txt. > > And I do not think it is obvious. > > I find this no less obvious than not being able to switch windows or > buffers while in insert mode. It's called insert mode for a reason. > Beginners may be confused by this, but I think that's more because they > usually haven't fully grasped the concept of Vim being a modal editor.
I agree that "it" is not documented, where "it" means the fact that the help for Ctrl-Pgup does not mention that this works only in Normal mode. It is "implicitly documented" in the sense that there is no tag for i_CTRL-<Pageup>, and it is not mentioned under ins-special-special , but that only helps if you already know vim (and its docs) pretty well. If you want vim to behave that way, then :inoremap <C-PageUp> <C-O><C-PageUp> :inoremap <C-PageDown> <C-O><C-PageDown> ought to do it. Similarly, you can switch windows (with the mouse, for example) while in Insert mode. If you care to search the archives (back a few years, perhaps) you will find that I gave advice on how to do this, mapping <LeftMouse> and using window-local variables. :help design-flexible HTH --Benji Fisher