On the topic of #5 (running commands w/o exiting vim), this is certainly a way to do it, but in my experience, it’s a lot easier to Ctrl+Z and background the vim job and do my stuff there. That said, this command is super useful when combined with :r, :r!ls will run ls, and then paste the contents into your file. It’s a nice way of pulling data into somewhere where you can screw around with it, a little bit quicker than dropping to the CL and dumping the content into a file where you can edit it.
Thank you and good points! When I first started using the command line I remember learnings about backgrounding tasks but for whatever reason, it didn’t become a long term habit for me. I can’t really explain why though. Nice point about adding the command ouput into the file to play around with!
Some of these I didn’t know, so it got my upvote.
Glad to hear it :D
On the topic of #5 (running commands w/o exiting vim), this is certainly a way to do it, but in my experience, it’s a lot easier to
Ctrl+Z
and background the vim job and do my stuff there. That said, this command is super useful when combined with:r
,:r!ls
will runls
, and then paste the contents into your file. It’s a nice way of pulling data into somewhere where you can screw around with it, a little bit quicker than dropping to the CL and dumping the content into a file where you can edit it.Otherwise great tips!
Thank you and good points! When I first started using the command line I remember learnings about backgrounding tasks but for whatever reason, it didn’t become a long term habit for me. I can’t really explain why though. Nice point about adding the command ouput into the file to play around with!