Copy current filename to clipboard :let @+ = expand("%") Paste last yank "0p The registry 0 always keep the last yanked text.