@Tony Thank you, your test looking at the register list works.

I tried in vimrc:
```
let @* = 'star'
echo @*
```
and it returned 'star'
but after vim started, there was no @* in the register list!

Do you know how/why the star register is working before vim is fully started 
but not after?

This is the updated test for 'clipboard'.
It now works in local terminal and remote ssh.

" .......1.........2.........3..
if has("clipboard")
  let @- = @* " save system clipboard
  let @* = 'star' | redir @" | silent reg | redir END
  if @" =~ '\n"* '
    let @* = @- " restore system clipboard
    vmap ,y "+y
    nmap ,p "+gP
    " exclude:{pattern} must be last ^= prepend += append
    set clipboard-=autoselect
    set clipboard^=unnamed
    if has("gui_running") || has("xterm_clipboard")
      silent! set clipboard^=unnamedplus
    endif
  endif
elseif has("macunix")
  vmap ,y :write !pbcopy<cr><cr>
endif
" .......1.........2.........3..

-- 
-- 
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to