Character Info (ga, g8, g Ctrl-G)

What is this character? Where am I?

Keys: ga, g8, g Ctrl-G, Ctrl-G

ga shows the codepoint of the character under cursor (decimal/hex/octal). g8 shows the UTF-8 byte sequence. g Ctrl-G gives a verbose location report (line/col/word count/byte position).

Character Info

Three diagnostic commands tell you what's actually in the file at the cursor โ€” useful when something looks normal but isn't.

Key Shows
ga Codepoint of char under cursor (Dec, Hex, Oct)
g8 UTF-8 byte sequence of char under cursor
Ctrl-G Brief: filename, modified flag, position percentage
gCtrl-G Verbose: word/char/byte counts and cursor position

Worked example โ€” ga

Inspect the byte under the cursor.

Step 1 ยท
advanced.character-info
Step 2 ยท ga ยท ga โ€” decimal/hex/octal codepoint, plus digraph if any.
ga โ€” decimal/hex/octal codepoint, plus digraph if any.

โ–ถ Try this in the simulator

Watch

See also: The {key:g} Family