Discussion on: Using Vim as your main editor for web development

dubst3pp4 profile image
Marc Hanisch

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.