Using vim, how do you quickly refresh the web page you're working on?

I have been using VIM for several weeks while communicating with various web languages, and I really enjoy it.

It is very difficult for me to make a tab or click on my browser and refresh the page to see the effect of the code change. This is even more annoying when I use Virtual Box, and I usually work from PDF files on the main system, so I have limited window space.

Do you have any bizarre gurus to do this? I was wondering if it is possible to split the VIM workspace and have / lynx links in a separate window or something like that?

edit:

out of curiosity if someone is still looking at this: -

Is it possible to launch a browser from vim and load a url based on a kind variable?

:! firefox http: // localhost / bla / $ CURRENTWORKINGFILE

something like?

+3
source share
3 answers

I do not know how to do this specific, but I know two plugins that allow you to communicate with the shell from VIM:

+2
source

If you are developing locally where no one cares, how about installing JS to refresh the page?

<script>
setTimeout(function() { location.reload() }, 60000 );
</script>

That way, you can continue to work in vim and browse every web page every time to refresh it. This should work on most web pages.

, VIM , - .

+5

Source: https://habr.com/ru/post/1750580/


All Articles