Created
June 11, 2015 17:08
-
-
Save dhruvasagar/7b2d998ad750f70d6583 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
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