Open current file in web browser in Vim

前端 未结 9 538
自闭症患者
自闭症患者 2020-12-24 15:01

I\'d like to be able to send the HTML file I\'m currently editing in vim to my web browser, Chrome. I\'m running Linux.

This gets me very close:

9条回答
  •  一生所求
    2020-12-24 15:28

    You can exec chrome silently:

    nmap  w :exec 'silent !google-chrome % &'
    

    :exe[cute] {expr1} .. Executes the string that results from the evaluation of {expr1} as an Ex command.

提交回复
热议问题