Add a bunch of stuff, change leader key
git-svn-id: http://photonzero.com/dotfiles/trunk@70 23f722f6-122a-0410-8cef-c75bd312dd78
This commit is contained in:
parent
410560d54e
commit
c47f86d55b
90 changed files with 9641 additions and 1653 deletions
2
.vim/bundle/lusty/doc/explorer-vim.changes
Normal file
2
.vim/bundle/lusty/doc/explorer-vim.changes
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
Don't throw an error when looking up special non-file buffers.
|
||||
New and improved fuzzy matching algorithm.
|
||||
38
.vim/bundle/lusty/doc/explorer-vim.writeup
Normal file
38
.vim/bundle/lusty/doc/explorer-vim.writeup
Normal file
|
|
@ -0,0 +1,38 @@
|
|||
LustyExplorer is a fast and responsive way to manage files and buffers in Vim. It includes a filesystem explorer, a buffer switcher, and a buffer grep for searching through and switching between files and buffers quickly, all through a mostly common interface.
|
||||
|
||||
A short video someone made:
|
||||
|
||||
http://www.youtube.com/watch?v=dLMKVYqdarY
|
||||
|
||||
Some old stuff (pre v2.0 - we now use fuzzy matching instead of tab completion):
|
||||
http://viewglob.sourceforge.net/lusty-explorer-animated.gif
|
||||
http://viewglob.sourceforge.net/lusty-explorer-annotated.png
|
||||
|
||||
Instructions:
|
||||
|
||||
:LustyFilesystemExplorer
|
||||
:LustyFilesystemExplorerFromHere
|
||||
:LustyBufferExplorer
|
||||
:LustyBufferGrep (for searching through all open buffers)
|
||||
|
||||
<Leader>lf - Opens filesystem explorer.
|
||||
<Leader>lr - Opens filesystem explorer at the directory of the current file.
|
||||
<Leader>lb - Opens buffer explorer.
|
||||
<Leader>lg - Opens buffer grep.
|
||||
|
||||
When one of the explorers is launched, a new window appears at bottom presenting a table of files/dirs or buffers, and in the status bar is a prompt:
|
||||
|
||||
>>
|
||||
|
||||
As you type a name, the table updates using a fuzzy matching algorithm (or regex matching in the case of grep). Press enter to open the selected match, <C-n>/<C-p> to select the next/previous match, or press <ESC> or <Ctrl-c> to cancel.
|
||||
|
||||
See the "Usage:" section of the script for other tricks and features.
|
||||
|
||||
If you like LustyExplorer, you may also like LustyJuggler: vimscript #2050
|
||||
|
||||
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 to add it.
|
||||
3
.vim/bundle/lusty/doc/juggler-vim.changes
Normal file
3
.vim/bundle/lusty/doc/juggler-vim.changes
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
- don't error if ENTER is pressed before selection
|
||||
- avoid a "Press ENTER to continue" message. (Thanks to Bartosz Leper)
|
||||
- don't error when the QuickFix buffer is open. (Thanks to Marco Barberis)
|
||||
42
.vim/bundle/lusty/doc/juggler-vim.writeup
Normal file
42
.vim/bundle/lusty/doc/juggler-vim.writeup
Normal file
|
|
@ -0,0 +1,42 @@
|
|||
LustyJuggler is a high speed buffer juggler. Having to consciously think about which buffer you need to switch to sucks, so use this instead.
|
||||
|
||||
Here's an animated gif showing it in action:
|
||||
|
||||
http://viewglob.sourceforge.net/lusty-juggler-animated.gif
|
||||
|
||||
Annotated snapshot progression:
|
||||
|
||||
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
|
||||
|
||||
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.
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue