Saari Development

Ali Rizvi's Technical Blog as a Professional Software Development Engineer

Vim: Inserting output of unix/linux command

leave a comment »

I had seen other vim experts do this but couldn’t remember how they did. Today I finally search and found how to insert the output of a unix/linux command directly in a vim buffer(without copy-pasting).


:r!ls /home/

or in the visual mode (by pressing V) simply !ls /home/

Simple isn’t it and quite useful at times.

Advertisements

Written by imsaar

December 24, 2007 at 12:48 am

Posted in editor, vim

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: