I'm trying to find the right ex command to overwrite the current vim buffer with the system clipboard.
The relevant system clipboard register is
"+ in this case.
My first guess was to use
:%+p; i.e. select the whole buffer
% and then paste
"+ register to the current buffer. But this doesn't work.
The other way around, yanking the current buffer into the system clipboard is accomplished by
% select the whole buffer;
+ to the system clipboard register.