Skip to content

Instantly share code, notes, and snippets.

@ngsw
Created November 28, 2011 18:25
Show Gist options
  • Save ngsw/1401408 to your computer and use it in GitHub Desktop.
Save ngsw/1401408 to your computer and use it in GitHub Desktop.
vundle_easy-setup
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
@ngsw
Copy link
Author

ngsw commented Nov 28, 2011

あとはBundle "plugin_name" を追記していくだけなので便利ですなー。
Vundleすごいなー。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment