[Top][All Lists]

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

Re: [vile] How to use map! to enter 'special' UTF8 characters?

From: Chris Green
Subject: Re: [vile] How to use map! to enter 'special' UTF8 characters?
Date: Fri, 17 Mar 2017 08:55:41 +0000
User-agent: Mutt/1.6.1 (2016-04-27)

On Fri, Mar 17, 2017 at 10:06:15AM +1100, Brendan O'Dea wrote:
> On 17 March 2017 at 09:08, Chris Green <address@hidden> wrote:
> > I'm trying to set up a single key to enter a 'tick'.  The UTF code for
> > this is u2714.  I can successfully enter the character in vile using
> > ^Vu2714 but I can't get a map! to enter the character for me.
> >
> > I have put the following in my .vilerc:-
> >
> >     map! #4 ✔
> >     map! #5 ABCDE
> >
> > The F5 key works, it inserts ABCDE but F4 gives me ✔.
> Try mapping it to ^Vu2714.  That worked for me.
That's *exactly* what I have done, it shows correctly (as above) in
.vilerc but when I hit F4 in insert mode while editing I see the
string â\u009C\0094.  I can insert a ✔ by typing CTRL/V + u + 27 + 14
though, it displays OK in vile.

Chris Green

reply via email to

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