Permalink
Browse files

Fix long standing bug, and iprove copy/paste to X

  • Loading branch information...
1 parent b041a9c commit 57c58284def93c4d8ec40be828be6e1d55b88418 @graudeejs committed Jul 7, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 vimrc
View
@@ -602,7 +602,7 @@ if exists("$DISPLAY") && has("X11")
vmap <F3> "+y
nmap <F3> <ESC>"+p
imap <F3> <ESC>"+p
-elseif exists("$DISPLAY") && ProgrPath('xclip') != ''
+elseif exists("$DISPLAY") && exists("$XAUTHORITY") && ProgrPath(['xclip']) != '' && filereadable($XAUTHORITY)
vmap <F2> :!xclip -i -f -selection secondary<CR>
nmap <F2> <ESC>:r!xclip -o -selection secondary<CR>
imap <F2> <ESC>:r!xclip -o -selection secondary<CR>

0 comments on commit 57c5828

Please sign in to comment.