Skip to content

Instantly share code, notes, and snippets.

@Kapeli
Forked from yjsoon/gist:3474117
Created February 22, 2013 22:43
Show Gist options
  • Save Kapeli/5017177 to your computer and use it in GitHub Desktop.
Save Kapeli/5017177 to your computer and use it in GitHub Desktop.
" Search Dash for word under cursor
function! SearchDash()
let s:browser = "/usr/bin/open"
let s:wordUnderCursor = expand("<cword>")
let s:url = "dash://".s:wordUnderCursor
let s:cmd ="silent ! " . s:browser . " " . s:url
execute s:cmd
redraw!
endfunction
map <leader>d :call SearchDash()<CR>
@Kapeli
Copy link
Author

Kapeli commented Feb 22, 2013

https://github.com/rizzatti/dash.vim#readme is now the recommended Dash Vim plugin. Use that instead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment