Auto-reload browser when I save changes to html file, in Chrome?

后端 未结 23 2073
半阙折子戏
半阙折子戏 2020-12-12 11:46

I\'m editing an HTML file in Vim and I want the browser to refresh whenever the file underneath changes.

Is there a plugin for Google Chrome that will listen for ch

23条回答
  •  一整个雨季
    2020-12-12 12:35

    Install and set up chromix

    Now add this to your .vimrc

    autocmd BufWritePost *.html,*.js,*.css :silent ! chromix with http://localhost:4500/ reload
    

    change the port to what you use

提交回复
热议问题