summaryrefslogtreecommitdiffstats
path: root/vim/ftplugin/ruby.vim
diff options
context:
space:
mode:
Diffstat (limited to 'vim/ftplugin/ruby.vim')
-rw-r--r--vim/ftplugin/ruby.vim6
1 files changed, 3 insertions, 3 deletions
diff --git a/vim/ftplugin/ruby.vim b/vim/ftplugin/ruby.vim
index a7c536d..e030a3d 100644
--- a/vim/ftplugin/ruby.vim
+++ b/vim/ftplugin/ruby.vim
@@ -18,7 +18,7 @@ endif
" look up words in ri rather than man for K
function! s:ri(word)
- exe 'silent read! ri --no-pager "' . a:word . '" 2>/dev/null'
+ exe 'silent read! ri -T -f rdoc "' . a:word . '" 2>/dev/null'
endfunction
-nnoremap <buffer> <silent>K :call Help(0, [':'], '<SID>ri')<CR>
-vnoremap <buffer> <silent>K :call Help(1, [':'], '<SID>ri')<CR>
+nnoremap <buffer> <silent>K :call Help(0, [':', '.'], '<SID>ri')<CR>
+vnoremap <buffer> <silent>K :call Help(1, [':', '.'], '<SID>ri')<CR>