The command to operate the clipboard on the mac command line is pbcopy. This command copies the contents of the standard input to the clipboard, so that you can paste it directly using command-v.
There is no need to exit vim at all, just enter vim directly; then enter the command: r ![cmd] ->Insert the execution result of the command at the current position [cmd] is the command you want to enter ([] do not enter it , this is just for marking)
The command to operate the clipboard on the mac command line is pbcopy. This command copies the contents of the standard input to the clipboard, so that you can paste it directly using command-v.
http://stackoverflow.com/ques...
There is no need to exit vim at all, just enter vim directly; then enter the command: r ![cmd] ->Insert the execution result of the command at the current position
[cmd] is the command you want to enter ([] do not enter it , this is just for marking)