Skip to content

Instantly share code, notes, and snippets.

@dhruvasagar
Created June 11, 2015 17:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dhruvasagar/7b2d998ad750f70d6583 to your computer and use it in GitHub Desktop.
Save dhruvasagar/7b2d998ad750f70d6583 to your computer and use it in GitHub Desktop.
if exists('g:loaded_dash')
finish
endif
let g:loaded_dash = 1
function! s:Dash(search)
exec 'silent !open "dash://' . join(split(a:search), ':') . '"'
redraw!
endfunction
command! -bar -nargs=+ Dash call s:Dash(<q-args>)
nnoremap dx :Dash <C-R>=&filetype<CR> <cword><CR>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment