summaryrefslogtreecommitdiffstats
path: root/vimrc
diff options
context:
space:
mode:
authorSebastian Reichel <sre@ring0.de>2013-04-18 13:28:02 +0200
committerSebastian Reichel <sre@ring0.de>2013-04-18 13:28:02 +0200
commit726ffb8beb63e515d411ccb65375b6f7dcc689c2 (patch)
treeb4ef12c4bf69352bd44b3601ab24e37e3afb1f58 /vimrc
parentf09cf69e5a7055679920340645e7fe8be397e76a (diff)
downloadvim-config-726ffb8beb63e515d411ccb65375b6f7dcc689c2.tar.bz2
use X11 clipboard
Diffstat (limited to 'vimrc')
-rw-r--r--vimrc5
1 files changed, 1 insertions, 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 <C-c> y: call system("xclip -i -selection clipboard", getreg("\""))<CR>
-nmap <C-v> :call setreg("\"",system("xclip -o -selection clipboard"))<CR>p
-
" debian/control indents must be spaces
autocmd FileType debcontrol set expandtab