Skip to content

Instantly share code, notes, and snippets.

@sdhull
Created July 12, 2013 00:36
Show Gist options
  • Save sdhull/5980489 to your computer and use it in GitHub Desktop.
Save sdhull/5980489 to your computer and use it in GitHub Desktop.
This is a key mapping in vim so that leader-f will copy current file name to your keyboard in OSX
nnoremap <silent> <Leader>f :<C-u>silent !echo % <bar> pbcopy<CR>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment