On 25/05/10 22:37, Bram Moolenaar wrote:

Charles Campbell wrote:

Set up a file<tmp>  with a single line: (this line should appear as a -1
with a "m" exponent; ie. char-0x1D50
-1áµ

Use the following command:
vim -u simple.vimrc tmp

and try Yp (yank and put).

<simple.vimrc>:
set nocp
set enc=utf-8

I see

--11áµ

instead of
-1áµ
-1áµ

ie. its picking up the -1 but ignoring the "m" exponent.

I can't reproduce it...


Neither can I. (My OS locale is en_US.UTF-8 so I started Vim with

        vim -u NONE -N minus-one-em.txt

). Which Vim version? I tried Vim 7.3a c81f0a037059 (Mon May 24 22:06:04 2010 +0200 "And another small fix for persistent undo.") and also Vim 7.2.437. My file minus-one-em.txt contains your three characters and a linefeed, no BOM (hex 2D 31 E1 B5 90 0A).

I see what you describe when doing y0p or y^p instead (starting at the exponent-m in Normal mode), which is normal since 0 and ^ are "exclusive" motions. y$p (starting in column 1) gives --1ᵐ1ᵐ which is also normal since $ is "inclusive".


Best regards,
Tony.
--
Rules for driving in New York:
        (1) Anything done while honking your horn is legal.
        (2) You may park anywhere if you turn your four-way flashers
            on.
        (3) A red light means the next six cars may go through the
            intersection.

--
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