To read a file into the vim buffer I can do something like:
:r myfile.txt
Or to grab a command's output:
:r !ls
Is there a way to run a vim command and get the output to where my cursor is? something like:
:r nmap
:r|put=execute('nmap')
:silent
:silent put =execute('nmap')
:r|put=execute('nmap'). How could that be done with:silenttoo? – David542 Jun 13 '20 at 07:10:silent put =execute('nmap')– Matt Jun 13 '20 at 07:12