let g:netrw_nogx = get(g:, 'netrw_nogx', 1) " disable netrw's gx mapping. " Open URI under cursor. nmap go (openbrowser-open) " Open selected URI. vmap go (openbrowser-open) " Search word under cursor. nmap gs (openbrowser-search) " Search selected word. vmap gs (openbrowser-search) " If it looks like URI, Open URI under cursor. " Otherwise, Search word under cursor. nmap gx (openbrowser-smart-search) " If it looks like URI, Open selected URI. " Otherwise, Search selected word. vmap gx (openbrowser-smart-search) " vnoremap gob :OpenBrowser https://www.baidu.com/s?wd==expand("") " nnoremap gob :OpenBrowser https://www.baidu.com/s?wd==expand("") " vnoremap gog :OpenBrowser https://www.google.com/?#newwindow=1&q==expand("") " nnoremap gog :OpenBrowser https://www.google.com/?#newwindow=1&q==expand("") " vnoremap goi :OpenBrowserSmartSearch http://www.iciba.com/=expand("") " nnoremap goi :OpenBrowserSmartSearch http://www.iciba.com/=expand("")