Permalink
Browse files

Added xclip intregration.

  • Loading branch information...
1 parent 09d5166 commit 6990969b0fdda09a0fb0d67089a2f35a7dc6b7b4 @corymb corymb committed with Feb 22, 2012
Showing with 5 additions and 2 deletions.
  1. +5 −2 vimrc
View
7 vimrc
@@ -223,6 +223,9 @@ autocmd BufWrite *.py :call DeleteTrailingWS()
" Make vertical splits default to the right hand side:
set spr
-" This beauty remembers where you were the last time you edited the file, and
-" returns to the same position.
+" This beauty remembers where you were the last time you edited the file, and returns to the same position.
au BufReadPost * if line("'\"") > 0|if line("'\"") <= line("$")|exe("norm '\"")|else|exe "norm $"|endif|endif
+
+" Xclip integration:
+vmap <F9> :!xclip -f -sel clip<CR> " copy text to xorg server clipboard
+map <F10> :-1r !xclip -o -sel clip<CR> " paste text from xserv clip to vim

0 comments on commit 6990969

Please sign in to comment.