Monday, April 26, 2010

Re: FAQ question section 11.4

On Apr 26, 1:01 pm, stosss <sto...@gmail.com> wrote:
> Me: I tried this for a curly quote. I placed the cursor over one and
> pressed ga it showed me 8220 as the ASCII code. I typed:
>
> Me: / then I pressed CTRL-V and got --visual block--
> Me: so I tried:
> Me: / then I pressed CTRL-v and got ^ then I typed 8220 then I pressed
> ENTER and got a capital Y with two dots over it and a zero to the
> right.
>

If you're getting 8220 as the ASCII code, then the character is not
representable in ASCII. ASCII only uses 1-byte codes. A single byte
can only represent values from 0 to 255.

Your "Y with two dots over it" is the ASCII character for the value,
822.

I did a quick Google search for "curly quote ASCII code" and found
this page:
http://www.tedmontgomery.com/tutorial/HTMLchrc.html

From there (and verified from copy-pasting into Vim, and doing ga on
the character) I get an ASCII value of 147 for the left curly double
quote. Typing /^V147 places the curly quote into the search as
expected.

Looking at :help c_CTRL-V, it sounds like this entry method only works
for single-byte characters. I do not ever use multibyte charaters in
my work, so I do not have any idea how to enter them.

--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

Subscription settings: http://groups.google.com/group/vim_use/subscribe?hl=en

No comments:

Post a Comment