Skip to content

Instantly share code, notes, and snippets.

@mattn
Last active December 13, 2015 21:09
Show Gist options
  • Save mattn/4975267 to your computer and use it in GitHub Desktop.
Save mattn/4975267 to your computer and use it in GitHub Desktop.
function! s:dash(...)
let word = len(a:000) == 0 ? input('Dash search: ') : a:1
call system(printf("open dash://'%s'", word))
endfunction
command! -nargs=? Dash call <SID>dash(<f-args>)
@mattn
Copy link
Author

mattn commented Feb 19, 2013

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