Open current file in web browser in Vim

前端 未结 9 612
自闭症患者
自闭症患者 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:24

    I use the shell.vim plugin to run commands in background on Windows. I don't know exactly what it does, but I believe it also works for that on Linux:

    http://www.vim.org/scripts/script.php?script_id=3123

    Shell.vim does allow for asynchronous external commands, but I don't know whether it allows you to keep focus with Vim terminal, avoid moving back manually.

    Another plugin that allows asynchronous calls is below, although it relies on having Vim compiled with Python support and I haven't tested: https://github.com/MarcWeber/vim-addon-background-cmd

提交回复
热议问题