Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Vim awesomeness

Copy current filename to clipboard

:let @+ = expand("%")

Paste last yank

"0p

The registry 0 always keep the last yanked text.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment