Created
January 30, 2013 10:45
-
-
Save k-yamada/4672384 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
" =============== NeoBundle START =============== | |
set nocompatible " be iMproved | |
filetype off | |
if has('vim_starting') | |
set runtimepath+=~/.vim/bundle/neobundle.vim | |
call neobundle#rc(expand('~/.vim/bundle/')) | |
endif | |
" originalrepos on github | |
"NeoBundle 'Shougo/neobundle.vim' | |
"NeoBundle 'Shougo/vimproc' | |
"NeoBundle 'VimClojure' | |
"NeoBundle 'Shougo/vimshell' | |
"NeoBundle 'Shougo/unite.vim' | |
"NeoBundle 'Shougo/neocomplcache' | |
"NeoBundle 'Shougo/neocomplcache-snippets-complete' | |
"NeoBundle 'jpalardy/vim-slime' | |
"NeoBundle 'scrooloose/syntastic' | |
""NeoBundle 'https://bitbucket.org/kovisoft/slimv' | |
" neobundle"{{{ | |
" コマンドを伴うやつの遅延読み込み | |
"bundle"{{{ | |
" その他 {{{ | |
NeoBundle 'Shougo/vimproc', { | |
\ 'build' : { | |
\ 'mac' : 'make -f make_mac.mak', | |
\ 'unix' : 'make -f make_unix.mak', | |
\ }, | |
\ } | |
NeoBundleLazy 'taichouchou2/vim-endwise.git', { | |
\ 'autoload' : { | |
\ 'insert' : 1, | |
\ } } | |
" }}} | |
" 補完 {{{ | |
NeoBundleLazy 'Shougo/neocomplcache', { | |
\ 'autoload' : { | |
\ 'insert' : 1, | |
\ }} | |
NeoBundleLazy 'Shougo/neosnippet', { | |
\ 'autoload' : { | |
\ 'insert' : 1, | |
\ }} | |
NeoBundle 'Shougo/neocomplcache-rsense', { | |
\ 'depends': 'Shougo/neocomplcache', | |
\ 'autoload': { 'filetypes': 'ruby' }} | |
NeoBundleLazy 'taichouchou2/rsense-0.3', { | |
\ 'build' : { | |
\ 'mac': 'ruby etc/config.rb > ~/.rsense', | |
\ 'unix': 'ruby etc/config.rb > ~/.rsense', | |
\ } } | |
" }}} | |
" 便利 {{{ | |
" 範囲指定のコマンドが使えないので、tcommentのLazy化はNeoBundleのアップデートを待ちましょう... | |
NeoBundle 'tomtom/tcomment_vim' | |
NeoBundleLazy 'tpope/vim-surround', { | |
\ 'autoload' : { | |
\ 'mappings' : [ | |
\ ['nx', '<Plug>Dsurround'], ['nx', '<Plug>Csurround'], | |
\ ['nx', '<Plug>Ysurround'], ['nx', '<Plug>YSurround'], | |
\ ['nx', '<Plug>Yssurround'], ['nx', '<Plug>YSsurround'], | |
\ ['nx', '<Plug>YSsurround'], ['vx', '<Plug>VgSurround'], | |
\ ['vx', '<Plug>VSurround'] | |
\ ]}} | |
" }}} | |
" ruby / railsサポート {{{ | |
NeoBundle 'tpope/vim-rails' | |
NeoBundleLazy 'ujihisa/unite-rake', { | |
\ 'depends' : 'Shougo/unite.vim' } | |
NeoBundleLazy 'basyura/unite-rails', { | |
\ 'depends' : 'Shjkougo/unite.vim' } | |
NeoBundleLazy 'taichouchou2/unite-rails_best_practices', { | |
\ 'depends' : 'Shougo/unite.vim', | |
\ 'build' : { | |
\ 'mac': 'gem install rails_best_practices', | |
\ 'unix': 'gem install rails_best_practices', | |
\ } | |
\ } | |
NeoBundleLazy 'taichouchou2/unite-reek', { | |
\ 'build' : { | |
\ 'mac': 'gem install reek', | |
\ 'unix': 'gem install reek', | |
\ }, | |
\ 'autoload': { 'filetypes': ['ruby', 'eruby', 'haml'] }, | |
\ 'depends' : 'Shougo/unite.vim' } | |
NeoBundleLazy 'taichouchou2/alpaca_complete', { | |
\ 'depends' : 'tpope/vim-rails', | |
\ 'build' : { | |
\ 'mac': 'gem install alpaca_complete', | |
\ 'unix': 'gem install alpaca_complete', | |
\ } | |
\ } | |
let s:bundle_rails = 'unite-rails unite-rails_best_practices unite-rake alpaca_complete' | |
function! s:bundleLoadDepends(bundle_names) "{{{ | |
" bundleの読み込み | |
execute 'NeoBundleSource '.a:bundle_names | |
au! RailsLazyPlugins | |
endfunction"}}} | |
aug RailsLazyPlugins | |
au User Rails call <SID>bundleLoadDepends(s:bundle_rails) | |
aug END | |
" reference環境 | |
NeoBundleLazy 'vim-ruby/vim-ruby', { | |
\ 'autoload' : { 'filetypes': ['ruby', 'eruby', 'haml'] } } | |
NeoBundleLazy 'taka84u9/vim-ref-ri', { | |
\ 'depends': ['Shougo/unite.vim', 'thinca/vim-ref'], | |
\ 'autoload': { 'filetypes': ['ruby', 'eruby', 'haml'] } } | |
NeoBundleLazy 'skwp/vim-rspec', { | |
\ 'autoload': { 'filetypes': ['ruby', 'eruby', 'haml'] } } | |
NeoBundleLazy 'ruby-matchit', { | |
\ 'autoload' : { 'filetypes': ['ruby', 'eruby', 'haml'] } } | |
" }}} | |
" }}} | |
"}}} | |
NeoBundle 'scrooloose/nerdtree' | |
NeoBundle 'vim-coffee-script' | |
" syntax + 自動compile | |
NeoBundle 'kchmck/vim-coffee-script' | |
" js BDDツール | |
NeoBundle 'claco/jasmine.vim' | |
" indentの深さに色を付ける | |
NeoBundle 'nathanaelkane/vim-indent-guides' | |
filetype plugin indent on " required! | |
filetype indent on | |
syntax on | |
" =============== NeoBundle END =============== | |
set nobackup | |
set noswapfile | |
" for ruby | |
set tabstop=2 | |
set shiftwidth=2 | |
set expandtab | |
" for java | |
"set tabstop=4 | |
"set shiftwidth=2 | |
set paste | |
set autoindent " always set autoindenting on | |
colorscheme murphy | |
" 大文字小文字を区別 | |
set noic | |
" quickrun | |
silent! nmap <unique> qu <Plug>(quickrun) | |
au QuickfixCmdPost vimgrep cw | |
"タブ、空白、改行を可視化 | |
"set list | |
set listchars=tab:»-,trail:-,eol:↲,extends:»,precedes:«,nbsp:% |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment