vim: digraphs don't work in single-char replace mode

Stefano Zacchiroli zack@debian.org
Tue, 15 Mar 2005 19:55:49 +0100


--huq684BweRXVnRxX
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Tue, Mar 15, 2005 at 05:16:27PM +0100, martin f krafft wrote:
> > I cannot reproduce it either, and it doesn't seem to be utf-8 related.=
=20
> > maybe has martin some curious config ...
> I do have a unicode system and quite a complex config, but even
>   LC_ALL=3DC LANG=3DC vim -u /dev/null
> is affected.

I investigated the issue. The _intented_ behaviour of single char
replace mode with respect to digraphs is governed by the "cpoptions"
variable ("cpo" for short).

If it does not contains "D" then digraph could be used as arguments of
"r". If it contains "D" then digraph are not permitted. See ":help
digraph-arg" for reference.

This behaviour is completely ortoghonal to wheter replacemente is
attempted in command mode or in visual mode.

Could you please check if your "cpo" variables contains "D"? If it does
then this is not a bug, but the intended behaviour.

Cheers.

PS Runing vim with -u /dev/null (or equivalently with -U NONE) is a non
   proof of the bug, since when all initialization are skipped cpo does
   indeed contains "D".

--=20
Stefano Zacchiroli -*- Computer Science PhD student @ Uny Bologna, Italy
zack@{cs.unibo.it,debian.org,bononia.it} -%- http://www.bononia.it/zack/
If there's any real truth it's that the entire multidimensional infinity
of the Universe is almost certainly being run by a bunch of maniacs. -!-

--huq684BweRXVnRxX
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: Digital signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (GNU/Linux)

iD8DBQFCNy+11cqbBPLEI7wRAhBHAKCjuqVJW2Q47NL5sNc7LiLGuJFc3wCcCfbi
r4BXEgXupqRUQN12Jt05nRE=
=U0Hp
-----END PGP SIGNATURE-----

--huq684BweRXVnRxX--