Skip to content

Instantly share code, notes, and snippets.

@klebercode
Created July 1, 2017 20:52
Show Gist options
  • Save klebercode/de26ff2177688d623d41d6abcc292213 to your computer and use it in GitHub Desktop.
Save klebercode/de26ff2177688d623d41d6abcc292213 to your computer and use it in GitHub Desktop.
"" Copy/Paste/Cut
if has('unnamedplus')
set clipboard=unnamed,unnamedplus
endif
noremap YY "+y<CR>
noremap <leader>p "+gP<CR>
noremap XX "+x<CR>
if has('macunix')
" pbcopy for OSX copy/paste
vmap <C-x> :!pbcopy<CR>
vmap <C-c> :w !pbcopy<CR><CR>
endif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment