Skip to content

Commit

Permalink
map Dash lookup to K
Browse files Browse the repository at this point in the history
  • Loading branch information
nocash committed Aug 30, 2014
1 parent 2aa9921 commit 49b6223
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .vimrc
Expand Up @@ -483,8 +483,6 @@ augroup END

augroup Miscellaneous
au!
" Ruby
au BufNewFile,BufReadPost *.rb set keywordprg=ruby-doc
" Cucumber (The ft detection in the plugin doesn't seem to work for me)
au BufNewFile,BufReadPost *.feature,*.story setfiletype cucumber
" Set Ruby for certain non .rb files
Expand Down Expand Up @@ -613,6 +611,15 @@ function! BufEnterCommit()
end
endfunction

" WIP
function! DashSearch()
let query = expand("<cword>")
silent execute "!open dash://".shellescape(query)
redraw!
endfunction
command! Dash :call DashSearch()
nnoremap K :Dash<cr>
"}}}
"==========================================================================
" Acknowledgements {{{
Expand Down

0 comments on commit 49b6223

Please sign in to comment.