Permalink
Browse files

Impooved ruby.vim

  • Loading branch information...
1 parent 0fc58ce commit 3d9ddc923ca0abb7a0871e3ba4dd65c58cf2aee3 @yuroyoro committed Jun 20, 2012
Showing with 31 additions and 2 deletions.
  1. +4 −1 .vimrc.bundle
  2. +27 −1 .vimrc.plugins_setting
View
5 .vimrc.bundle
@@ -144,7 +144,7 @@ call vundle#rc()
Bundle 'SQLUtilities'
" vim-ruby : VimでRubyを扱う際の最も基本的な拡張機能
- Bundle 'ruby.vim'
+ Bundle 'vim-ruby/vim-ruby'
" rails.vim : rails的なアレ
Bundle 'tpope/vim-rails'
@@ -155,6 +155,9 @@ call vundle#rc()
" ソースコード上のメソッド宣言、変数宣言の一覧を表示
Bundle 'taglist.vim'
+ " エラーがある場所をhilight
+ Bundle 'errormarker.vim'
+
" tagsを利用したソースコード閲覧・移動補助機能 tagsファイルの自動生成
" Bundle 'Source-Explorer-srcexpl.vim'
View
28 .vimrc.plugins_setting
@@ -51,7 +51,7 @@ let NERDShutUp=1
" 検索外のディレクトリ、ファイルパターン
let Grep_Skip_Dirs = '.svn .git .hg'
let Grep_Skip_Files = '*.bak *~'
--
+
"------------------------------------
" surround.vim
"------------------------------------
@@ -251,6 +251,13 @@ omap <silent> ie <Plug>CamelCaseMotion_ie
xmap <silent> ie <Plug>CamelCaseMotion_ie
"------------------------------------
+" errormarker.vim
+"------------------------------------
+" disable default shortcut mapping and re-define to <Leader>ec
+let g:errormarker_disablemappings = 1
+nmap <silent> <unique> <Leader>ec :ErrorAtCursor<CR>
+
+"------------------------------------
" vimshell
"------------------------------------
let g:vimshell_user_prompt = 'fnamemodify(getcwd(), ":~")'
@@ -369,6 +376,25 @@ cnoremap UO Unite outline<Enter>
" quickrun.vim
"------------------------------------
let g:quickrun_config = {}
+let g:quickrun_config._ = {'runner' : 'vimproc'}
+let g:quickrun_config['rspec/bundle'] = {
+ \ 'type': 'rspec/bundle',
+ \ 'command': "rspec",
+ \ 'cmdopt': "-l %{line('.')}",
+ \ 'exec': "bundle exec %c %o %s ",
+ \ 'filetype': 'rspec-result'
+ \}
+let g:quickrun_config['rspec/normal'] = {
+ \ 'type': 'rspec/normal',
+ \ 'command': "rspec",
+ \ 'cmdopt': "-l %{line('.')}",
+ \ 'exec': '%c %o %s',
+ \ 'filetype': 'rspec-result'
+ \}
+function! RSpecQuickrun()
+ let b:quickrun_config = {'type' : 'rspec/bundle'}
+endfunction
+autocmd BufReadPost *_spec.rb call RSpecQuickrun()
"------------------------------------
" Pydiction
"------------------------------------

0 comments on commit 3d9ddc9

Please sign in to comment.