I do a lot of Python quick simulation stuff and I\'m constantly saving (:w) and then running (:!!). Is there a way to combine these actions?
Maybe a "save and run&qu
This is what I put in my .vimrc file and works like a charm:
.vimrc
nnoremap r :w:!!
Of course you need to run your shell command once before this, so it knows what command to execute.
Example:
:!node ./test.js