Skip to content

Instantly share code, notes, and snippets.

@alpaca-tc
Created January 13, 2013 00:56
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alpaca-tc/4521470 to your computer and use it in GitHub Desktop.
Save alpaca-tc/4521470 to your computer and use it in GitHub Desktop.
"----------------------------------------
" vim-ref
"----------------------------------------
"{{{
let g:ref_open = 'split'
let g:ref_refe_cmd = expand('~/.vim/ref/ruby-ref1.9.2/refe-1_9_2')
nnoremap rr :<C-U>Unite ref/refe -default-action=split -input=
nnoremap ri :<C-U>Unite ref/ri -default-action=split -input=
aug MyAutoCmd
au FileType ruby,eruby,ruby.rspec nnoremap <silent><buffer>KK :<C-U>Unite -no-start-insert ref/ri -input=<C-R><C-W><CR>
au FileType ruby,eruby,ruby.rspec nnoremap <silent><buffer>K :<C-U>Unite -no-start-insert ref/refe -input=<C-R><C-W><CR>
aug END
"}}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment