Hi James,
On 5/26/06, James Vega <[EMAIL PROTECTED]> wrote:
severity 368993 normal
thanks
On Fri, May 26, 2006 at 04:58:02PM +0100, João Batista wrote:
> Vi/Vim/Gvim is now handling accented characters in Portuguese locale
> (pt_PT, charsets: ISO-8859-1, ISO-8859-15). Examples:
>
> 1) typing tildekey+a to obtain a "~a" (tilde atop the 'a') goes to the new
> line.
> 2) typing acute+o to obtain a "'o" in replace mode (shift+R) exits the
> replace mode instead of replacing the character under the cursor.
> However, replacing a single character (r), instead of entering the
> Replace mode, works as expected.
Could you give more details about 1) and 2)? Vim doesn't automatically
translate ~+a or '+o to other characters. You can enter those use
ctrl-k ~ a or ctrl-k ' o.
I have a Portuguese (pt_PT) keyboard.
CHARSET=iso8859-1
COUNTRY=pt_PT
LANG=pt_PT
Appending a "set nocompatible" to my $HOME/.vimrc solved the problem.
Still, it worked "automagically" (i.e. without having to add this
line) on vim-6.4-007+1 (Debian), but not on vim-7.0-017+4. Maybe a
different configuration file (don't know which one it should be). So,
doing "set nocompatible" works for me on 7.0.
> 3) In Vi, the cursor keys do not work and exit the Insert mode. However,
> the cursor keys work as expected in Vim and Gvim.
This is as intended. vi invokes Vim in vi-compatible mode (:help
'compatible') which doesn't understand using the cursor keys.
James
--
GPG Key: 1024D/61326D40 2003-09-02 James Vega <[EMAIL PROTECTED]>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (GNU/Linux)
iEYEARECAAYFAkR3LMQACgkQDb3UpmEybUAkcACfbgIxH0+2kgNjhUP6TJxNFsH2
ogIAoIQ1X6Rmqzvaix8KHTcX6JH7KSk3
=KPfe
-----END PGP SIGNATURE-----
--
João Batista