We're a place where coders share, stay up-to-date and grow their careers.
Thanks for this article. I'm using YouCompleteMe without problems for years, but good to know in which direction the Vim community is moving :-)
Btw. you can also execute browser-sync straight direct in your Vim with the help of the :terminal command:
:terminal
:terminal ++close browser-sync start --server --files .
(assuming that your current working directory is where your index.html lives)
You could also create a custom command for this in your .vimrc:
.vimrc
command Serve terminal ++close browser-sync start --server --files .
Now you have to type just :Serve and you don't have to leave Vim.
:Serve
Thanks for this article. I'm using YouCompleteMe without problems for years, but good to know in which direction the Vim community is moving :-)
Btw. you can also execute browser-sync straight direct in your Vim with the help of the
:terminal
command::terminal ++close browser-sync start --server --files .
(assuming that your current working directory is where your index.html lives)
You could also create a custom command for this in your
.vimrc
:command Serve terminal ++close browser-sync start --server --files .
Now you have to type just
:Serve
and you don't have to leave Vim.