if (&term =~ "rxvt") || (&term =~ "screen") || (&term =~ "term") || (&term =~ "vt100")
execute 'set t_kb=' . nr2char(127)
- " 'autoselect' to always put selected text on the clipboard;
- " 'unnamed' to use the * register like unnamed register '*'
- " for all yank, delete and put operations;
- " This allows to use mouse for copy/paste in local xterm,
- " but prevents to save the unnamed register between sessions.
- " set clipboard=autoselect,unnamed,exclude:cons\|linux
-
if has ("terminfo")
" set t_Co=256
set t_Co=16
set t_Sf="\e[3%dm"
set t_Sb="\e[4%dm"
endif
+
+ " 'autoselect' to always put selected text on the clipboard;
+ " 'unnamed' to use the * register like unnamed register '*'
+ " for all yank, delete and put operations;
+ " This allows to use mouse for copy/paste in local xterm,
+ " but prevents to save the unnamed register between sessions.
+ " set clipboard=autoselect,unnamed,exclude:cons\|linux
+
+ " Use xclip to copy/paste to/from X clipboard at remote host
+ " vmap "+y :!xclip -i -sel clip
+ " map "+p :r!xclip -o -sel clip
+ " Enable X11Forwarding and use ssh -X or even -Y
endif
if (&term =~ "screen")