Use ":read !" to insert the result of a shell command in Vim
Sometimes, I need to insert a list of files into a text file I'm editing in Vim. Here's how to do it:
:read !ls *.md
Any command can follow the !
.
Sometimes, I need to insert a list of files into a text file I'm editing in Vim. Here's how to do it:
:read !ls *.md
Any command can follow the !
.