sponsor Vim development Vim logo Vim Book Ad

serverlist.vim : Switch between VIM windows quickly

 script karma  Rating 21/10, Downloaded by 3396  Comments, bugs, improvements  Vim wiki

created by
Don Yang
 
script type
utility
 
description
Script creates key mappings for each existing VIM window.  After sourcing the script, you can press \a in normal mode to switch to window 1, \b for window 2, etc.  The keys are broadcasted to each window, such that the same key always map to the same window.  \. will show mapping for current window.
 
install details
to run, :source serverlist.vim
VIM needs to be compiled with +clientserver

you can also place script in plugins directory to create shortcut keys automatically, but that will increase VIM startup time considerably (quadratic to number of windows), so be careful.
 

rate this script Life Changing Helpful Unfulfilling 
script versions (upload new version)

Click on the package to download.

package script version date Vim version user release notes
serverlist.vim 1.31 2004-03-04 6.0 Don Yang always delay mapping windows until buffer is available (bugfix)
serverlist.vim 1.3 2003-06-02 6.0 Don Yang compatibility fixes for 6.2
serverlist.vim 1.22 2002-11-26 6.0 Don Yang window cycling now works in both directions.
serverlist.vim 1.21 2002-09-30 6.0 Don Yang Fix to get around cmap <C-V> issue (for mswin.vim users)
serverlist.vim 1.2 2002-09-28 6.0 Don Yang Add key mapping to cycle windows.
serverlist.vim 1.1 2002-06-27 6.0 Don Yang Preserve existing keymappings.
serverlist.vim 1.01 2002-06-26 6.0 Don Yang bugfix for insert mode
serverlist.vim 1.0 2002-06-26 6.0 Don Yang Added key mapping to show shortcut for current window.
serverlist.vim 0.9 2002-05-06 6.0 Don Yang .
ip used for rating: 3.144.230.82

If you have questions or remarks about this site, visit the vimonline development pages. Please use this site responsibly.
Questions about Vim should go to the maillist. Help Bram help Uganda.
   
Vim at Github