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 .
Written by Katie Zhu
Related protips
2 Responses

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
·
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Vim
Authors
Related Tags
#vim
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#