RE: [Fwd: copy in Outlook, paste into Cream]
Cream is a free, easy-to-use configuration of the Vim text editor
Brought to you by:
digitect
From: Steve H. <dig...@mi...> - 2005-12-28 14:24:05
|
On Wed, 2005-12-28 at 09:16 -0400, BG - Ben Armstrong wrote: > Steve Hall [mailto:dig...@mi...] wrote: > > Nooo! Always fix the problem. Turns out, we can force a register > > to characterwise: > > > > function! Cream_paste(mode) > > " paste selection from universal clipboard ("+) > > > > if a:mode == "v" > > normal gv > > normal "+P > > " correct position > > normal l > > " don't re-select, sizes may differ > > elseif a:mode == "i" > > " fix win32 paste from app > > call setreg('+', '', 'a') The line above should be: call setreg('+', @+, 'c') > > let myvirtualedit = &virtualedit > > set virtualedit=all > > normal `^"+gP > > let &virtualedit = myvirtualedit > > endif > > > > endfunction > > > > Which should solve the problem without causing any more. (Not > > tested on Win32, please let me know as I won't have chance for > > many days.) > > Hm. This doesn't work for me on Linux *or* Win32. On Linux, > pasting does nothing. On Win32, pasting displays this error: > > Error detected while processing function Cream_paste: > line 14: > E353: Nothing in register + Sorry, forgot to pass along a more thoroughly tested update. -- Steve Hall [ digitect mindspring com ] :: Cream... something good to put in your Vim! :: http://cream.sourceforge.net |