Skip to content

Instantly share code, notes, and snippets.

@kergoth
Last active August 29, 2015 13:56
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 kergoth/8920703 to your computer and use it in GitHub Desktop.
Save kergoth/8920703 to your computer and use it in GitHub Desktop.
Vim integration for Dash.app
if has('macunix')
" Dash.app integration
let g:dash_map = {
\ 'python' : 'python2',
\ 'lua' : 'lua',
\ 'vim' : 'vim',
\ }
" Map K to look up the current word in dash for supported filetypes
augroup DashMap
au!
for key in keys(g:dash_map)
exe 'au FileType ' . key . ' nnoremap <buffer> K :Dash<cr>'
endfor
augroup END
Bundle 'rizzatti/funcoo.vim'
Bundle 'rizzatti/dash.vim'
endif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment