Permalink
Browse files

Copy and paste between vim and system

  • Loading branch information...
pellegrino committed May 14, 2012
1 parent b0ae592 commit 9160608e966996e888624b7e3a80b814b25aff1a
Showing with 4 additions and 0 deletions.
  1. +4 −0 vim/vim
View
@@ -126,3 +126,7 @@ inoremap jj <Esc>
"" Giving my arrow keys back while on tmux
map <Esc>[B <Down>
"" Copy and paste using the system xclip
vmap <C-c> y:call system("xclip -i -selection clipboard", getreg("\""))<CR>:call system("xclip -i", getreg("\""))<CR>
nmap <C-t> :call setreg("\"",system("xclip -o -selection clipboard"))<CR>p

0 comments on commit 9160608

Please sign in to comment.