45 lines
1.9 KiB
Text
45 lines
1.9 KiB
Text
LustyJuggler is a high speed buffer juggler. Having to consciously think about which buffer you need to switch to sucks, so use this instead.
|
|
|
|
Someone made a screen cast showing it in action (jump to 6:20):
|
|
|
|
http://lococast.net/archives/185
|
|
|
|
Some older stuff:
|
|
http://viewglob.sourceforge.net/lusty-juggler-animated.gif
|
|
http://viewglob.sourceforge.net/lusty-juggler-annotated.png
|
|
|
|
Launch the juggler with this key combo:
|
|
|
|
<Leader>lj
|
|
|
|
The command bar at bottom is replaced with a new bar showing the names of your currently opened buffers in most-recently-used order.
|
|
|
|
The buffer names are mapped to these keys:
|
|
|
|
1st --> a or 1
|
|
2nd --> s or 2
|
|
3rd --> d or 3
|
|
4th --> f or 4
|
|
5th --> g or 5
|
|
6th --> h or 6
|
|
7th --> j or 7
|
|
8th --> k or 8
|
|
9th --> l or 9
|
|
10th --> ; or 0
|
|
|
|
So if you type "f" or "4", the fourth buffer name will be highlighted and the bar will shift to center it as necessary (and show more of the buffer names on the right).
|
|
|
|
If you want to switch to that buffer, press "f" or "4" again or press "<ENTER>". Alternatively, press one of the other mapped keys to highlight another buffer.
|
|
|
|
If you changed your mind, cancel the juggler with any of "q", "<ESC>", "<C-c", "<BS>", "<Del>", or "<C-h>".
|
|
|
|
If you like LustyJuggler, you may also like LustyExplorer: vimscript #1890
|
|
|
|
Development repository: http://github.com/sjbach/lusty
|
|
|
|
install details
|
|
Copy the script into your $HOME/.vim/plugin directory so that it will be sourced on startup.
|
|
|
|
NOTE: This plugin requires Vim be compiled with Ruby interpretation. If you do not currently have this functionality, see the "Install Details:" section of the script for directions on adding it. It's not too tough.
|
|
|
|
Also: because of a bug in Vim's maparg() call, this plugin can interact poorly with plugins that remap common normal mode keys such as "d" (for dd, dw, etc.) and "<ENTER>". These include YankRing and SuperTab.
|