You can learn the ASCII or Unicode value of the character under the cursor by pressing '''ga''' in command mode or ''':as''' / ''':ascii''' on the command line . This displays the value of the current character in decimal, hex and octal. (Think "'''g'''et '''a'''scii.")
+
You can learn the ASCII or Unicode value of the character under the cursor by pressing '''ga''' in command mode or ''':as''' / ''':ascii''' on the command line . This displays the value of the current character in decimal, hex and octal. (Think "'''g'''et '''a'''scii.") The {{script|id=4410|text=characterize plugin}} overrides this command to provide even more useful information for Unicode characters, such as any {{help|prefix=no|digraphs}} Vim has defined to enter the character.
===Seeing ASCII/Unicode values in the status line===
===Seeing ASCII/Unicode values in the status line===
created May 7, 2001 · complexity intermediate · author Erhan · version 5.7
You can learn the ASCII or Unicode value of the character under the cursor by pressing ga in command mode or :as / :ascii on the command line . This displays the value of the current character in decimal, hex and octal. (Think "get ascii.") The characterize plugin overrides this command to provide even more useful information for Unicode characters, such as any digraphs Vim has defined to enter the character.
Seeing ASCII/Unicode values in the status line
You can also add options to the statusline option to show the
ASCII/Unicode value of the character under the cursor.