Wednesday, February 5, 2014

Re: XXD with Vim

  On Wed, 2014-02-05 at 07:44 +0100, Dominique Pellé wrote:    > John Beckett <johnb.beckett@gmail.com> wrote:  >   > > Ven Tadipatri wrote:  > >> It's nice that you can go into hex mode with Vim through the  > >> use of XXD, but it's really hard trying to find out what hex  > >> codes correspond to a given character.  > >  > > You know about ga and g8? In normal mode, put the cursor on a  > > character of interest then type ga or type g8 (:help ga).  > > g8 is good for UTF-8 as it shows the bytes used.  > >  > > John  >   > Hi  >   > In my ~/.vimrc, I have configured the statusline to  > show the Unicode character (something like U+00E9  > for é) of the character under the cursor, as well as its  > UTF-8 sequence (something like 0xc3 0xa9 for é).  >   > It looks like this (cursor on the é):  >   > http://dominique.pelle.free.fr/pic/statusline.png  >   > See statusline and function ShowUtf8Sequence() there:  >   > http://dominique.pelle.free.fr/.vimrc.xhtml  >   > Regards  > Dominique  >   > --     i use this in my status line.     dec/hex\ \%03.3b/\%02.2B\     shows decimal and hex values for char under cursor ala with cursoron an  equals sign char     dec/hex 061/3D    

No comments:

Post a Comment