Digital Marketing

Execute a script directly within vim/mvim/gvim

Do this in vim using the ! command. For instance to count the number of words in the current file you can do:

:! wc %
The % is replaced by the current filename. 

To run a script you could call the interpreter on the file - for instance if you are writing a python script:

:! python %

For bash script:

"! bash %


Popular posts from this blog

Fixed WSL sshd: no hostkeys available -- exiting

PowerMTA pmta command

How to fix: mv: failed to preserve ownership