Re: Weird:: substitute by using register with combinations

2013-04-08 Thread John Little
On Sunday, April 7, 2013 11:50:09 PM UTC+12, Christian Brabandt wrote: > Actually, it is not quite right. I forgot, there could be several > combining chars. So here is an updated patch. I checked this using the manually assembled character "œ̄́" which firefox does not render for me (gvim sort

Re: Weird:: substitute by using register with combinations

2013-04-07 Thread Bram Moolenaar
Christian Brabandt wrote: > Hi William! > > On Fr, 05 Apr 2013, William Fugh wrote: > > > It's OK if execute the following in command-line directly > > :%s#combinations#œ̄ṣ́#g > > > > However, if like this: > > :let @w = "%s#combinations#œ̄ṣ́#g" > > :@w > > the combinations will be lost. :-( >

Re: Weird:: substitute by using register with combinations

2013-04-07 Thread Christian Brabandt
Hi William! On So, 07 Apr 2013, William Fugh wrote: > BTW: Here is a patch. > > > > Well done, thank you guys so much. :-) Actually, it is not quite right. I forgot, there could be several combining chars. So here is an updated patch. Bram, please check. regards, Christian -- Nett sein kann j

Re: Weird:: substitute by using register with combinations

2013-04-07 Thread William Fugh
BTW: Here is a patch. > > Well done, thank you guys so much. :-) On Sun, Apr 7, 2013 at 7:13 AM, Christian Brabandt wrote: > Hi William! > > On Fr, 05 Apr 2013, William Fugh wrote: > > > It's OK if execute the following in command-line directly > > :%s#combinations#œ̄ṣ́#g > > > > However, if li

Re: Weird:: substitute by using register with combinations

2013-04-06 Thread John Little
On Sunday, April 7, 2013 9:13:55 AM UTC+12, Christian Brabandt wrote: > BTW: Here is a patch. Patch fixes it for me. Regards, John -- -- 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 htt

Re: Weird:: substitute by using register with combinations

2013-04-06 Thread Christian Brabandt
Hi William! On Fr, 05 Apr 2013, William Fugh wrote: > It's OK if execute the following in command-line directly > :%s#combinations#œ̄ṣ́#g > > However, if like this: > :let @w = "%s#combinations#œ̄ṣ́#g" > :@w > the combinations will be lost. :-( It's a combining char ;) BTW: Here is a patch. r

Re: Weird:: substitute by using register with combinations

2013-04-06 Thread John Little
In gvim 7.3.882, gtk2-gnome gui, Kubuntu 12.10, I see the problem. (Also in vim with uxterm.) (They're more usually called "combining" characters, and your examples all have what Unicode calls combining diacritical marks, f.ex. ̞ U+031E, COMBINING DOWN TACK BELOW I mention this because I did n

Re: Weird:: substitute by using register with combinations

2013-04-06 Thread William Fugh
On Sat, Apr 6, 2013 at 3:44 AM, Ben Fritz wrote: > > > I had to try it out to determine what you meant, but I reproduced the > problem in Windows 7 64-bit, running Vim 7.3.822. > Thank you, Sir. Here is the thing. Sometimes i have to execute a number of substitutions over and over again from tes

Re: Weird:: substitute by using register with combinations

2013-04-05 Thread Ben Fritz
On Thursday, April 4, 2013 11:53:16 PM UTC-5, William Fugh wrote: > It's OK if execute the following in command-line directly > :%s#combinations#œ̄ṣ́#g > > However, if like this: > :let @w = "%s#combinations#œ̄ṣ́#g" > :@w > the combinations will be lost. :-( > > I had to try it out to determine

Weird:: substitute by using register with combinations

2013-04-04 Thread William Fugh
It's OK if execute the following in command-line directly :%s#combinations#œ̄ṣ́#g However, if like this: :let @w = "%s#combinations#œ̄ṣ́#g" :@w the combinations will be lost. :-( BTW, it is also strictly correct if put the command into a function and call the function. ===