Show the code point under the cursor
:ascii
Example
Normal 0 / 2Command-line 1 / 2Normal 2 / 2one two
three four
five six
keepCursor on line 1, column 1one two
three four
five six
keepCursor on line 1, column 1one two
three four
five six
keepCursor on line 1, column 1Show the code point under the cursor.
Vim messages
earlier example message
- Last status message
earlier example message- Last warning
Example variables
- g:exampleCount
1
Command output
Empty
Command entered · ready to apply
Vim messages
earlier example message
- Last status message
earlier example message- Last warning
Example variables
- g:exampleCount
1
Command output
Empty
Displayed the code point of o: 111 decimal, 6f hex, 157 octal.
Vim messages
earlier example message <o> 111, Hex 6f, Octal 157
- Last status message
<o> 111, Hex 6f, Octal 157- Last warning
Example variables
- g:exampleCount
1
Command output
<o> 111, Hex 6f, Octal 157
Before & after
one two
three four
five six
keepCursor on line 1, column 1Vim messages
earlier example message
- Last status message
earlier example message- Last warning
Example variables
- g:exampleCount
1
Command output
Empty
one two
three four
five six
keepCursor on line 1, column 1Vim messages
earlier example message <o> 111, Hex 6f, Octal 157
- Last status message
<o> 111, Hex 6f, Octal 157- Last warning
Example variables
- g:exampleCount
1
Command output
<o> 111, Hex 6f, Octal 157
Start in Normal mode. Displayed message and variable values are captured from this isolated Vim; output text is never inferred from the catalog description.
Details & Vim help
Example replayed in Vim
Run :ascii or ga to see the numeric value of the character under the cursor in decimal, hexadecimal, and octal. Unicode values are shown with a Unicode encoding.