Gary Johnson wrote:
On 2012-03-15, Yuanchen Xie wrote:
Hello,

I had send this to bugs AT vim.org,but I'm not sure if this address is to
continue working.

When I was edit English text I has this strang character.

These are excerpt ( 3000+  lines total ) G

     So just what is it about Susan that the people find so fascinating?\\
     Arguably, it is the fact she is such a class act.\\
     However, many have suggested that her biggest appeal lies in her unassuming
     persona.\\


What I edited that was used as .tex for LaTeX. So there are "\\" at the end of
each line.
I want to share the content with others in the format such as .txt or .doc.
I want to delete the "\\".

I edit in vim as follows:
C-v ->  S-g ->  S-$ ,then S-A ,then Backspace*2 ,Esc

However, the \\ are still there. ( The "\\" has been deleted now, using ":%s/\\
\\//g". Thanks SHLUG! )
What was worse, a strang char appered behind the "\\" in each line.
Like this:

     So just what is it about Susan that the people find so fascinating?\\1
     Arguably, it is the fact she is such a class act.\\1
     However, many have suggested that her biggest appeal lies in her unassuming
     persona.\\1


When I discussed in Shanghai LUG Mail-list (shlug AT googlegroups) , other
friends also had the different char appered.
A friend YiYun( lilydjwg AT gmail ) think the char was the one under the cursor
before I typed Esc.

We think it's a bug.

I use lubuntu 11.10, Vim 7.3, edit in terminal (Guake).
I can reproduce the bug in gvim 7.3.138 (from the Cream site) on
Windows XP.  It took a few tries.  In addition to your instructions
above, I had to have only those three lines in the file and the
cursor was initially in the first column on the first line.  The
extra character in my case was '?', which happens to be the last
character on the first line.

     So just what is it about Susan that the people find so fascinating?
     Arguably, it is the fact she is such a class act.\\?
     However, many have suggested that her biggest appeal lies in her 
unassuming persona.\\?
I have not been able to duplicate this issue (Scientific Linux).

Does "backspace*2" mean hit the backspace key twice? Or hit the ctrl-h key twice? Or something else?
When I hit the backspace key and then *2, I get

E486: Pattern not found: So just what is it about Susan that the people find so fascinating? ^@ Arguably, it is the fact she is such a class act\.\\\\ ^@ However, many have sug
gested that her biggest appeal lies in her unassuming persona\.\\

Regards,
Chip Campbell

--
You received this message from the "vim_dev" 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

Raspunde prin e-mail lui