From 726ffb8beb63e515d411ccb65375b6f7dcc689c2 Mon Sep 17 00:00:00 2001 From: Sebastian Reichel Date: Thu, 18 Apr 2013 13:28:02 +0200 Subject: use X11 clipboard --- vimrc | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/vimrc b/vimrc index d84b58e..be6649b 100644 --- a/vimrc +++ b/vimrc @@ -3,6 +3,7 @@ set nocompatible " vim native mode syntax on " enable syntax highlighting colorscheme elektranox " cool colors +set clipboard=unnamedplus " use X11 clipboard for copy/paste set hlsearch " highlight searched word set number " numberize lines set ruler " lower file @@ -134,9 +135,5 @@ filetype plugin on " git branch in ruler set rulerformat=%33(%{fugitive#statusline()}%=%10(%l,%c%V%=%5(%p%%%)%)%) -" copy & paste -vmap y: call system("xclip -i -selection clipboard", getreg("\"")) -nmap :call setreg("\"",system("xclip -o -selection clipboard"))p - " debian/control indents must be spaces autocmd FileType debcontrol set expandtab -- cgit v1.2.3