Created
September 12, 2012 11:27
-
-
Save qickstarter/3706057 to your computer and use it in GitHub Desktop.
This file contains 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
" カーソル下のgemのrdocを開く | |
function! OpenYard(...) | |
let gem = a:1 == "" ? "" : a:1 | |
if gem == "" | |
call OpenBrowser("http://localhost:8808/") | |
else | |
let url = "http://localhost:8808/docs/" . tolower(gem) . "/frames/" | |
call OpenBrowser(url) | |
endif | |
endfunction | |
command! | |
\ -nargs=* -complete=file | |
\ OpenYard | |
\ call OpenYard(<q-args>) | |
" マッピング | |
nmap <Space>y :<C-U>OpenYard <C-R><C-W><CR> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment