Tip #151: an ascii table
tip karma |
Rating 30/22, Viewed by 4363
|
Read and edit this tip on the
Vim tip wiki.
The wiki may have a more recent version of this tip.
created: |
|
October 31, 2001 11:43 |
|
complexity: |
|
basic |
author: |
|
Adam Seyfarth |
|
as of Vim: |
|
6.0 |
There is an ascii table in the vim-help files, but it's hard to find. Thus, I shall give a pointer to it:
:help digraph-table
<< Generating a column of increasing numbers |
Spelling checkers for: Dutch, English, German, Hungarian, and Yiddish >>
Additional Notes
Anonymous,
November 1, 2001 7:13
|
The table does not list all ascii characters, for instance [a-z], [A-Z] and [0-9] are missing....
|
[email protected],
November 1, 2001 17:43
|
In fact it's not an ASCII table at all.
ASCII is 7-bit, codes 0x00 to 0x7F.
This table lists the C0, C1 and G1 ranges of ISO-8859-1 (ISO-Latin1).
C0 - lower control codes, 0x00 to 0x1F (and 0x7F, DEL)
C1 - higher control codes, 0x80 to 0x9F
G1 - ISO-8859 extension range, 0xA0 to 0xFF
What is referred to as ASCII characters is the G0 range, 0x20 to 0x7E.
|
Anonymous,
November 7, 2001 3:22
|
Note that you can get the ascii value (or whatever-value ;-) of the character under cursor with 'ga' (think of it as "Get Ascii" to remember it)
|
[email protected],
March 24, 2002 18:55
|
You can also use the cream-ascii routines (http://vim.sourceforge.net/scripts/script.php?script_id=247) to insert a specific ascii code with a dialog.
|
Alok,
October 26, 2004 10:13
|
This table is indeed correct for all ASCII codes and is a very useful tip.
See also http://www.asciitable.com.
Good find, Adam.
|
|