vile
[Top][All Lists]
Advanced

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

Re: [vile] :map and unicode


From: Christopher Illies
Subject: Re: [vile] :map and unicode
Date: Tue, 18 Nov 2008 07:55:22 +0100
User-agent: Mutt/1.4.2.3i

On Mon, Nov 17, 2008 at 08:45:55PM -0500, Thomas Dickey wrote:
> 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"
> > 
[... ]
> 
> 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...

Thanks for the hints about pressing ^V twice when using mapping. That
works in the digraphs.rc file as well, at least for now.

Christopher





reply via email to

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