Monday, December 27, 2021

Re: GVIM replace from clipbrard?

On 2021-12-26, Mike Schleif wrote:
> I use VIM on various *NIX platforms.
>
> I use GVIM on various MS Windows hosts.
>
> I often do this:
> 1. Copy a string to the clipboard
> 2. Visual mode select a string
> 3. :s/<type a string to be replaces>/<Ctrl-v the clipboard string>/g
> 4. Enter - replace all substrings
>
> This works delightfully everywhere - EXCEPT on Windows host!
>
> On that host, Ctrl-v pastes the entire Visual Mode selection - NOT the
> originally copied string!
>
> I'm sure that I've got something in that host's VIMRC; but, what is it?

One way to find out the difference between the configurations on
working and non-working hosts would be to run vim or gvim on both
hosts and execute the following on both:

:set nomore
:redir >> hostname.redir
:set! all

Then use vimdiff to compare the two .redir files.

Regards,
Gary

--
--
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 vim_use+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/20211228051050.GD26168%40phoenix.

No comments:

Post a Comment