Open URL under cursor in Vim with browser

后端 未结 11 1007
一整个雨季
一整个雨季 2021-01-29 20:05

I\'m using Twitvim for the first time. Seeing all the URLs in there made me wonder, is there any way to open the URL under the cursor in your favorite browser or a specified one

11条回答
  •  半阙折子戏
    2021-01-29 20:54

    This is simple, just replace "start" with whatever your OS uses

    GU for go url!

    " Open url
    if (has('win32') || has('win64'))
       nmap gu :exec "!start " 
    else
       nmap gu :exec "!open " 
    endif
    

提交回复
热议问题