Manage vim scripts with vundle.
There are lots of vim scripts, for syntax, indent, or color scheme somethin. But manage(install/upgrade/remove) so many scripts really boring. vbundle rocks !
The basic of vundle is to use github to manage the vim script. Let's see how can we make it works.
-
get the vundle from github:
$ git clone https://github.com/gmarik/vundle.git ~/.vim/bundle/vundle
-
config vundle, add these lines to your ~/.vimrc:
set nocompatible " be iMproved filetype off " required! set rtp+=~/.vim/bundle/vundle/ call vundle#rc() " let Vundle manage Vundle " required! Bundle 'gmarik/vundle' " My Bundles here: " " original repos on github " vim-scripts repos " non github repos filetype plugin indent on " required! " " Brief help " :BundleList - list configured bundles " :BundleInstall(!) - install(update) bundles " :BundleSearch(!) foo - search(or refresh cache first) for foo " :BundleClean(!) - confirm(or auto-approve) removal of unused bundles " " see :h vundle for more details or wiki for FAQ " NOTE: comments after Bundle command are not allowed..
-
find the scripts you need, before we use:
http://www.vim.org/scripts/script_search_results.php
to search and download .vim and place them in ~/.vim/plugin/.
Now, we just need to find the git repo for the script from:
http://vim-scripts.org/vim/scripts.html
Then add the repo url to ~/.vimrc file, like:
Bundle 'Lokaltog/vim-easymotion'
-
execute "BundleInstall" from an opening vim:
BundleInstall vim-easymotion
All done. Enjoy.
Written by Chao YANG
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Vim
Authors
Related Tags
#vim
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#