mirror of
https://github.com/oh-my-fish/oh-my-fish.git
synced 2024-11-23 09:00:27 +08:00
Add a vundle plugin similiar to that found in oh-my-zsh
This commit is contained in:
parent
2f585a1c2d
commit
50396d581b
25
plugins/vundle/vundle.load
Normal file
25
plugins/vundle/vundle.load
Normal file
|
@ -0,0 +1,25 @@
|
|||
function vundle-init
|
||||
if [ ! -d ~/.vim/bundle/vundle/ ]
|
||||
mkdir -p ~/.vim/bundle/vundle/
|
||||
end
|
||||
|
||||
if [ ! -d ~/.vim/bundle/vundle/.git/ ]
|
||||
git clone http://github.com/gmarik/vundle.git ~/.vim/bundle/vundle
|
||||
echo "\n\tRead about vim configuration for vundle at https://github.com/gmarik/vundle\n"
|
||||
end
|
||||
end
|
||||
|
||||
function vundle
|
||||
vundle-init
|
||||
vim -c "execute \"BundleInstall\" | q | q"
|
||||
end
|
||||
|
||||
function vundle-update
|
||||
vundle-init
|
||||
vim -c "execute \"BundleInstall!\" | q | q"
|
||||
end
|
||||
|
||||
function vundle-clean
|
||||
vundle-init
|
||||
vim -c "execute \"BundleClean!\" | q | q"
|
||||
end
|
Loading…
Reference in New Issue
Block a user