Execute current edited script in Vim
72 words, 1 minutes
When you edit a script using Vim, you may want to run the script without
actually quitting the editor.
This is easily done using the following Vim command:
<Esc>:!%<Enter>
Once the script has run, Vim will display its output and pause until
you Press ENTER or type command to continue
.
That’s all. It is published here so that I don’t have to query stackoverflow the next time I forget about it 🤣