Skip to content

Instantly share code, notes, and snippets.

@pazams
Created May 30, 2017 21:18
Show Gist options
  • Save pazams/2c55b7fec4e5a219e10a1ecdc9e7cf51 to your computer and use it in GitHub Desktop.
Save pazams/2c55b7fec4e5a219e10a1ecdc9e7cf51 to your computer and use it in GitHub Desktop.
" file yank
nmap fy :let @+ = expand("%")<CR>
" file-full yank
nmap ffy :let @+ = expand("%:p")<CR>
@pazams
Copy link
Author

pazams commented May 30, 2017

switch to @" if not using the unnamedplus register

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