diff --git a/.vimrc b/.vimrc index 2b85427..a2d1078 100644 --- a/.vimrc +++ b/.vimrc @@ -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 @@ -613,6 +611,15 @@ function! BufEnterCommit() end endfunction +" WIP +function! DashSearch() + let query = expand("") + silent execute "!open dash://".shellescape(query) + redraw! +endfunction +command! Dash :call DashSearch() +nnoremap K :Dash + "}}} "========================================================================== " Acknowledgements {{{