vim: How to insert output of shell command in-line?
0
Suppose I want to edit a new libvirt XML file: virsh dumpxml machine1 > machine2.xml Then I open the file with vim , vim machine2.xml and then I want to change the UUID. Now do this, I use :r ! uuidgen But the new UUID is inserted under the current line: <uuid>6r123ttz-6t01-356t-1y7h-g7oe196c8u3m</uuid> e67baf90-751b-4aea-a14b-aca1b881542b How may I insert the output of the uuidgen command into the current line, so that if I have <uuid></uuid> (with the cursor between >< ), then, by executing uuidgen I get <uuid>e67baf90-751b-4aea-a14b-aca1b881542b</uuid> The question is: is possible to use the :r vim command without adding a new line?
vim
...