vile
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [vile] :map and unicode


From: Thomas Dickey
Subject: Re: [vile] :map and unicode
Date: Mon, 17 Nov 2008 20:45:55 -0500
User-agent: Mutt/1.5.18 (2008-05-17)

On Mon, Nov 17, 2008 at 08:32:59AM +0100, Christopher Illies wrote:
> Here is an example of what happens:
> 
> Start a new file:
> > vile test
> In vile set the file encoding:
> :set file-encoding utf-8
> ....then enter the first unicode character directly:
> "i","^V","u","0","2","1","9","return","escape"
> ....enter the mapping:
> ":","m","a","p","!"," ","^V","^K","s",",","
> ","^V","u","0","2","1","9","return"
> ....enter the character as digraphs:
> "i","^K","s",",","escape"
> .... exit vile with ":wq"
> 
> 
> Now this is how the file looks like:
> > cat test
> ș
> ￈ル
> 
> > hexdump test
> 0000000 99c8 ef0a 88bf beef 0a99 000a          
> 000000b

I get the same result - going on that path.  But looking at the output
from ":map!" for the working case (where I define the map in .vilerc)
versus the non-working (where I did it interactively, as you indicate),
I see a difference: for the latter, vile is showing the literal character
rather than the "^Vu0219" string.

If instead, I type ^V twice interactively, I do enter the same mapping.
The mapping using the doubled ^V works...

(Whether this is what it _should_ do, I'll have to investigate, but
now I know where to look ;-).

-- 
Thomas E. Dickey <address@hidden>
http://invisible-island.net
ftp://invisible-island.net

Attachment: signature.asc
Description: Digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]