dash.vim
dash.vim copied to clipboard
Crossplatform support?
Hey,
Was wondering if you would be open to adding logic along the lines of:
let g:doc_reader = 'zeal' "
if has('macunix') " Use Mac's open to launch Dash
let g:doc_reader = 'open -g'
endif
and then change the s:search to
silent execute '!' . g:doc_reader . url
Then the plugin would work with Zeal on Linux (and possibly Windows?).
Happy to submit a PR but my vimscript needs work and although my changes work, I'm sure there is a better way of doing the above! :laughing:
This might work for windows with velocity - https://github.com/rizzatti/dash.vim/pull/62. Can add code to support zeal on Linux as well.