Friday, June 7, 2013: Vim: Running Custom Shell Commands Quickly
When I use Vim, sometimes when I make an edit, I want to test if it works by running some command.
(Something like gcc % && ./a.out
).
So I made a simple Vim script to help:
To use it, first, press <Leader>s
. It will ask for a command, in which you type the command you wish to run.
Then, when you want to run the configured command, just press <Leader>r
.
add / view all comments
Responses