Bug in /\l ?

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Bug in /\l ?

Bertram Scharpf
Hi,

my most common typo is leaving the SHift key too late so
that the first 2 characters will appear as upper case. I
help myself by defining a mapping

  map <silent> gA :%s/\v<(\u)(\u)(\l)/\1\l\2\3/gc<cr>

This works fine at home where I have a nice Debian Linux.
But at work, where I have to use the Windows version I
yield this:

  HEllo  -->  hElo

Actually, when I define

  map <silent> gA :%s/\v<(\u)(\u)(\l)/\1\L\2\e\3/gc<cr>

everything works fine.

Does anybody encounter the same?

Regards,

Bertram


--
Bertram Scharpf
Stuttgart, Deutschland/Germany
http://www.bertram-scharpf.de
Reply | Threaded
Open this post in threaded view
|

Re: Bug in /\l ?

Mathias Michaelis
Hi Bertram

>
>   map <silent> gA :%s/\v<(\u)(\u)(\l)/\1\l\2\3/gc<cr>
>
> This works fine at home where I have a nice Debian Linux.
> But at work, where I have to use the Windows version I
> yield this:
>
>   HEllo  -->  hElo
>
> Actually, when I define
>
>   map <silent> gA :%s/\v<(\u)(\u)(\l)/\1\L\2\e\3/gc<cr>
>
> everything works fine.
>
For vim 6.4 on Windows XP: No. The first map just worked fine for me.

Best regards

Mathias