vim-autoswap icon indicating copy to clipboard operation
vim-autoswap copied to clipboard

Add code to make autoswap work on Windows.

Open torrinj opened this issue 11 years ago • 2 comments

Some changes to attempt to make this work on Windows using +clientserver. Not perfect, but works.

torrinj avatar Oct 28 '14 00:10 torrinj

I did a quick test and found that remote_expr() returns a result right away, so using it will probably simplify the code a lot since a bunch of that code was dedicated to just waiting for a response. Now that I think about it, I'm not sure what happens if a VIM is unable to respond right away. I'll have to test it. Anyway, I'll see what I can do with the code a little later.

As for the last line of your comment. I would assume the technique will work where ever VIM is compiled with +clientserver. Are you aware of places where we have +clientserver but the technique doesn't work?

torrinj avatar Oct 28 '14 17:10 torrinj

It does not simplify the situation when there are GVim instances and Vim instances in terminals, in particular because the latter cannot raise themselves. But I suppose that in Windows all the sessions are Win32 sessions in their own windows, so using the features exposed by +clientserver makes sense.

gioele avatar Oct 29 '14 14:10 gioele