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
--
--
You received this message from the "vim_use" 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
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
Tuesday, February 4, 2014
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment