Skip to content

Instantly share code, notes, and snippets.

@kernel1983
Created July 7, 2012 05:51
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kernel1983/3064972 to your computer and use it in GitHub Desktop.
Save kernel1983/3064972 to your computer and use it in GitHub Desktop.
FuzzyFinder for VIM install script
cd
mkdir -p .vim/
cd ~/.vim/
mkdir -p autoload/
mkdir -p doc/
mkdir -p plugin/
curl -OL https://bitbucket.org/ns9tks/vim-fuzzyfinder/get/4.2.2.tar.gz
tar zxvf 4.2.2.tar.gz
rm zxvf 4.2.2.tar.gz
mv ns9tks-vim-fuzzyfinder-8a46435f4532/autoload/* autoload/
mv ns9tks-vim-fuzzyfinder-8a46435f4532/doc/* doc/
mv ns9tks-vim-fuzzyfinder-8a46435f4532/plugin/* plugin/
curl -OL https://bitbucket.org/ns9tks/vim-l9/get/tip.gz
tar zxvf tip.gz
rm tip.gz
mv ns9tks-vim-l9-3bb534a720fa/autoload/* autoload/
mv ns9tks-vim-l9-3bb534a720fa/doc/* doc/
mv ns9tks-vim-l9-3bb534a720fa/plugin/* plugin/
cd
touch .vimrc
python -c "cmd='map ff <esc>:FufFile<cr>';cmd in open('.vimrc').read() or open('.vimrc', 'a').write('\n'+cmd)"
python -c "cmd='map fd <esc>:FufDir<cr>';cmd in open('.vimrc').read() or open('.vimrc', 'a').write('\n'+cmd)"
python -c "cmd='map fb <esc>:FufBuffer<cr>';cmd in open('.vimrc').read() or open('.vimrc', 'a').write('\n'+cmd)"
@kernel1983
Copy link
Author

Install

curl -k https://raw.github.com/gist/3064972/fuf.sh | sh

Usage

Enter VIM by typing vim, try

ff

To Open File

fd

To Change Folder

fb

To Switch between Buffers

Required VIM 7.2+, tested on OS X, ubuntu, debian

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment