vi: insert shell output

by prettyscripts on 2009-08-10 11:41:23 • Leave a comment »

unix

to run shell command while in vi:

:!command

to insert output from shell command after the cursor:

:r!command

Tags: insert, shell, unix, vi

No feedback yet

Leave a comment


Your email address will not be revealed on this site.

Your URL will be displayed.
PoorExcellent
note: all comments are moderated. do not spam and do not advertise. any irrelevant and non-sense comments will be deleted.
(Line breaks become <br />)
(Name, email & website)
(Allow users to contact you through a message form (your email will not be revealed.)