There are two common things I do when I code something. I either open that file in the browser or run it in node. So I'd like to create a couple of shortcuts inside vim to that effect.
I'd like F5 to open a new gnome terminal in the current directory and run http-server
and then open up a new tab in firefox hitting port 8000.
Also, I'd like F6 to open a new gnome terminal and run nodemon
and then open a new firefox tab and hit port 8000.
nnoremap <F5> :exe ':silent !firefox %'
nnoremap <F5> :exe ':silent !firefox %'