While vim's window support isn't exactly analogous to NetBeans' split panes, they are very similar, and if possible, it would be great to have the vim window keys "do the right thing" in jVi and NetBeans.
The most important feature is the ability to jump between two panes while editing. For example, if you have one pane on top and one on the bottom, Hitting Ctrl-w j would take the focus from the top pane and shift it to the bottom one, and Ctrl-w k would move the focus to the pane above. Likewise, for side-by-side panes, h and l could be used to go left and right (when preceded by a Ctrl-w, of course). Ctrl-w w should cycle through all open panes, Ctrl-w t and Ctrl-w b should go to the top and bottom panes. Honestly, just having Ctrl-w w alone would be awesome because it would be enough to keep me from having to use the mouse to switch focus.
I tried to emulate this by mapping the "Back" and "Forward" in NetBeans to Ctrl-w+Ctrl-k and Ctrl-w+Ctrl-j, but Back and forward aren't exactly analogous to vim's Ctrl-w (h/j/k/l/w/t/b) since it also seems to also cycle between files that have been opened when using Ctrl-].
A less important feature is the ability to open and close panes and resize them. These commands are :split, :new, :close, :only, :vsplit, :vnew,
and Ctrl-w n and Ctrl-w H. Some of those take numbers for an initial size. For resizing, <number> Ctrl-W (+/-/</>) will increase or decrease horizontal or vertical window size. Of course, these are commands that are infrequently used in an editing session, so it's not the end of the world to perform them with a mouse, so these features aren't high priority in my mind.
Log in to post a comment.