this post was submitted on 22 May 2025
17 points (100.0% liked)
VIM - Vi IMproved
1172 readers
1 users here now
For Vim enthusiasts and anyone interested in Vim/Neovim!
"VIM is the greatest editor since the stone chisel." - Dr. Jose Unpingco
#HJKL
founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
Just a habit, because you can run any command and get the stdout into vim in that method. Like for getting your shebang or an ls listing.
Then for the casual reader: don't pick this habit up. There's no reason to fork/exec a shell, invoke cat for the purpose of printing to stdout, then move the data into your buffer. You can just do
:r somefile.txt
.