Wednesday, November 18, 2009

ascii character code

found this little tidbit to help out a friend.

to find the ascii representation of a character in vim, place the cursor over the character and enter ":ascii".

for more info on this vim feature, enter ":help ascii" in vim.


to accomplish the same thing from the command line, "echo" the character and pipe to "od" (read the man page).

No comments: