Last Updated: February 25, 2016
·
1.152K
· kzhu91

Read command output into vim

I've been familiar with using the read command in vim to read in text from a file. But you can also read in command output!

r ! ls -l .

2 Responses
Add your response

Yep that's the power of vim ! completely extensible. I used to r ! which python to write the shebang.

over 1 year ago ·

That is :r! ls -l :)
Also as shebang, please use #!/usr/bin/env python, to make life easier for everybody.

over 1 year ago ·