とびさんのブログ

技術チョッピリ 格闘ガッツリ その他フンワリ

jedi-vim導入

今までvimrcしか弄ってなかったんですが(と言っても5行程度ですが)

NeoBundleを知って導入したので、その時のメモ。便利なはず!

vim入れましょ

# yum install -y vim

ディレクトリ作成

# mkdir ~/.vim/bundle

.vimrc作成

# vim ~/.vimrc

.vimrcに公式ドキュメントコピペ

 " Note: Skip initialization for vim-tiny or vim-small.
 if 0 | endif

 if has('vim_starting')
   if &compatible
     set nocompatible               " Be iMproved
   endif

   " Required:
   set runtimepath+=~/.vim/bundle/neobundle.vim/
 endif

 " Required:
 call neobundle#begin(expand('~/.vim/bundle/'))

 " Let NeoBundle manage NeoBundle
 " Required:
 NeoBundleFetch 'Shougo/neobundle.vim'

 " My Bundles here:
 " Refer to |:NeoBundle-examples|.
 " Note: You don't set neobundle setting in .gvimrc!

 call neobundle#end()

 " Required:
 filetype plugin indent on

 " If there are uninstalled bundles found on startup,
 " this will conveniently prompt you to install them.
 NeoBundleCheck

call neobundle#end() の前行に下記追記して保存

NeoBundle 'davidhalter/jedi-vim'
NeoBundle 'Shougo/neocomplcache.git'
NeoBundle 'Shougo/neocomplete.vim'
NeoBundle 'Shougo/unite.vim.git'


vimで再度開いて下記実行

:NeoBundleInstall

jedi-vimサブモジュールの初期化と更新

# cd ~/.vim/bundle/jedi-vim
# git submodule update --init


 
■補足
あとは、.vimrcにこんなん入れればいいかと

set number
set title
set tabstop=4
set smartindent
set showmatch
syntax on