I added 4 following lines to my vimrc file to add shortcuts (to run current *.html buffer in browser and to run current *.js file in node):
When I type
:set filetype it says
html for *.html and
I tried to set Alt+Shift+F10 shortcut for opening in browser and that somehow solves my problem. Now, when both filetypes plus files without filetype are open at the same time I can open any (html, js and plain text) filetype in browser with Alt+Shift+F10 and send it to Node to compile with Ctrl+Shift+F10. Why it happens?
Here my vimrc file. Vim version is 7.4