Vim logo vim online Vim Book Ad

basic Tip #310: showing ascii value of the current character in decimal, hex, and octal

 tip karma   Rating 18/10, Viewed by 781 

created:   August 13, 2002 12:10      complexity:   basic
author:   calvin wong      as of Vim:   6.0

dont know if you guys know this or not, but i was trying to make the word "hello" to upper case by trying "gaUw" (=
which didnt work but it showed the decimal, hex, and octal of the char under the cursor... ncie to know.

 rate this tip  Life Changing Helpful Unfulfilling 

<<close vim you left open remotely | Open the folder containing the currently open file >>

Additional Notes

calvin wong, August 13, 2002 12:11
DOH.... i forgot.
its "ga" or ":as" or ":ascii"
Anonymous, August 18, 2002 10:03
vimtip #67
[email protected], August 26, 2002 10:53
Don't kow if you already knew this but, the "~" "tilde" character changes the case of the caharacter under the cursor and "[count]~" changes the case of "count" number of characters as in "5~" changes the case of 5 characters. the count is a VIm feature but ~ is an old vi feature.
[email protected], October 6, 2002 20:25
Actually, the [count]~ feature is also there in quite old vi
implementations too.  Even Solaris has it in old versions...
If you have questions or remarks about this site, visit the vimonline development pages. Please use this site responsibly.
Questions about Vim should go to [email protected] after searching the archive. Help Bram help Uganda.
SourceForge Logo