RSS Amplifier

TuM'Fatig · Nov 20, 2024

Execute current edited script in Vim

0
Sign in to vote or save

This page cannot be shown here. You can still read it on the original site — the toolbar below keeps your place in the directory.

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&rsquo;s all. It is published here so that I don&rsquo;t have to query stack overflow the next time I forget…

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 🤣

Read on tumfatig.net

Comments

Nothing yet. Say the first thing.

    Sign in to join the conversation.