From d9e6bfdd902fc661c8fd58ede248ccfc3b3039d7 Mon Sep 17 00:00:00 2001 From: guns Date: Sun, 23 Jan 2011 10:41:55 +0800 Subject: [PATCH] Remove `unnamedplus' from clipboard in addition to `unnamed' Vim 7.3.074 adds the `unnamedplus' feature to the clipboard option, which allows use of the "+ register (X11 CLIPBOARD) via yank/paste --- plugin/surround.vim | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plugin/surround.vim b/plugin/surround.vim index 321d843..8028990 100644 --- a/plugin/surround.vim +++ b/plugin/surround.vim @@ -335,7 +335,7 @@ function! s:insert(...) " {{{1 endif "call inputsave() let cb_save = &clipboard - set clipboard-=unnamed + set clipboard-=unnamed clipboard-=unnamedplus let reg_save = @@ call setreg('"',"\r",'v') call s:wrapreg('"',char,linemode) @@ -400,7 +400,7 @@ function! s:dosurround(...) " {{{1 endif endif let cb_save = &clipboard - set clipboard-=unnamed + set clipboard-=unnamed clipboard-=unnamedplus let append = "" let original = getreg('"') let otype = getregtype('"') @@ -499,7 +499,7 @@ function! s:opfunc(type,...) " {{{1 let sel_save = &selection let &selection = "inclusive" let cb_save = &clipboard - set clipboard-=unnamed + set clipboard-=unnamed clipboard-=unnamedplus let reg_save = getreg(reg) let reg_type = getregtype(reg) "call setreg(reg,"\n","c")