Skip to content

Instantly share code, notes, and snippets.

@todashuta
Created May 25, 2013 19:20
Show Gist options
  • Select an option

  • Save todashuta/5650426 to your computer and use it in GitHub Desktop.

Select an option

Save todashuta/5650426 to your computer and use it in GitHub Desktop.
" .vimrc
" .vimrc がある時点で nocompatible になってますが一応書いておきます。
set nocompatible
set backupdir=~/.vimbackup
set shiftwidth=2
" コマンドモードで自動的に半角英数に変換
if has('gui_macvim')
set noimdisableactivate
endif
" 'filetype off' はNeoBundleの最新版では不要になってるので
" 外しておきました。あっても特に問題はないですが。
if has('vim_starting')
if has('win32') || has('win64')
"set runtimepath+='path to neobundle directory'
elseif has('unix')
set runtimepath+=~/.vim/bundle/neobundle.vim
endif
endif
" 注意: neobundle#rc()は has('vim_starting') の外に書きます。
" 古い情報では has('vim_starting') の中に書いてるものがあるので注意です(^^;)
call neobundle#rc(expand('~/.bundle'))
" この場合では、 ~/.bundle 以下にプラグインのファイルが入りますが
" 違うディレクトリにすることも可能です。
" neobundle 自体を neobundle で管理する場合は NeoBundleFetch を使います。
NeoBundleFetch 'Shougo/neobundle.vim'
" GitHub のレポジトリの場合は、ユーザ名/レポジトリ名 で使用可能ですので
" 省略しましたが、git://... の形で書いても問題ありません。
NeoBundle 'Shougo/neocomplcache'
NeoBundle 'Shougo/unite.vim'
NeoBundle 'Shougo/vimfiler'
NeoBundle 'Shougo/vimshell'
NeoBundle 'Shougo/vimproc', {
\ 'build' :{
\ 'cygwin' : 'make -f make_cygwin.mak',
\ 'mac' : 'make -f make_mac.mak',
\ 'unix' : 'make -f make_unix.mak',
\ }}
NeoBundle 'vim-scripts/TwitVim'
NeoBundle 'vim-scripts/opsplorer'
filetype plugin on
filetype indent on
" 起動時にインストールチェックを行う。
NeoBundleCheck
" __END__
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment