77
78

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

VimのVundleによるプラグイン管理

Posted at

vimのVundleでのプラグイン管理がすごく便利そうだったのでメモ.

Vundleのインストール

Linuxマシンでのインストールの場合で書いてますが, Windowsのgvimなどでもインストールできると思います.

$ git clone http://github.com/gmarik/vundle.git ~/.vim/bundle/vundle

ターミナルから, gitコマンドで, gmarik/vundle.git をcloneするだけでインストールが完了します.

.vimrcの設定

.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
Bundle 'tpope/vim-fugitive'
Bundle 'Lokaltog/vim-easymotion'
Bundle 'rstacruz/sparkup', {'rtp': 'vim/'}
Bundle 'tpope/vim-rails.git'
" vim-scripts repos
Bundle 'L9'
Bundle 'FuzzyFinder'
" non github repos
Bundle 'git://git.wincent.com/command-t.git'
" ...
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..

上記の.vimrcのコードを.vimrcに追記してあげる感じです.

Bundle 'hogehoge'

のhogehogeの部分が, インストールしたいプラグイン名になります. プラグイン名を検索したいときは, vim内で :BundleSearch hogehogeとしてあげればいいみたいです.

インストールしたいプラグインをBundle 'hogehoge'の形式で.vimrcに保存, 再読み込みした状態で,

:BundleInstall

を行えば, プラグインの更新・インストールを行ってくれます.

77
78
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
77
78

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?