vim: 在光标处而不是下一行插入命令的输出

vim: Insert output of command at cursor instead of next line

我的 .vimrc 文件中有一个快捷方式,它生成一个 uuid 并将其插入到我的缓冲区中:

com! Uuid r ! uuidgen | tr "[:upper:]" "[:lower:]"

当我调用它时,它会在下一行插入 uuid。但是,我希望 vim 在光标所在的位置插入 uuid,而不是在下一行。我该怎么做?

命令如下:

:com! Uuid exe "normal! i".system('uuidgen | tr "[:upper:]" "[:lower:]" | tr -d "\n"')