Created
November 28, 2011 18:25
-
-
Save ngsw/1401408 to your computer and use it in GitHub Desktop.
vundle_easy-setup
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cd $HOME | |
mkdir .vim | |
git init | |
git submodule add git://github.com/gmarik/vundle.git .vim/vundle.git | |
if [ ! -f $HOME/.vimrc ] ; then | |
cat >> $HOME/.vimrc <<"VIMRC.eof" | |
" Initialize | |
"Vundle Initialize | |
set rtp+=~/.vim/vundle.git/ | |
call vundle#rc() | |
" original repos on github | |
Bundle 'tpope/vim-fugitive' | |
" vim-scripts repos | |
Bundle 'rails.vim' | |
" non github repos | |
Bundle 'git://git.wincent.com/command-t.git' | |
" Vundle " | |
" vim-ruby | |
Bundle 'vim-ruby/vim-ruby' | |
" quickrun | |
Bundle 'quickrun.vim' | |
" default | |
set tabstop=2 | |
set shiftwidth=2 | |
set expandtab | |
set number | |
set nocompatible | |
set nosi | |
syntax on | |
filetype on | |
filetype indent on | |
filetype plugin on | |
set encoding=utf-8 | |
"ZenkakuSPACE-HighLights | |
" http://answer.pythonpath.jp/questions/45/vimmervimrc?%E3%83%9A%E3%83%BC%E3%82%B8=1#48 | |
if has('syntax') | |
syntax enable | |
function! ZenkakuSpace() | |
highlight ZenkakuSpace cterm=underline ctermfg=red gui=underline guifg=red | |
silent! match ZenkakuSpace / / | |
endfunction | |
augroup ZenkakuSpace | |
autocmd! | |
autocmd VimEnter,BufEnter * call ZenkakuSpace() | |
augroup END | |
endif | |
VIMRC.eof | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
あとはBundle "plugin_name" を追記していくだけなので便利ですなー。
Vundleすごいなー。