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 will work in insert mode too:
" F5 => Save & Run python3 " nnoremap :w :!sh -c 'python3 %' inoremap :w :!sh -c 'python3 %'
I use it all the time to test stuff that is just too long to retype in the interpreter.