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.

Written by imsaar

December 24, 2007 at 12:48 am

Posted in editor, vim

Leave a Reply