Monday, April 26, 2010

Re: FAQ question section 11.4

On Mon, Apr 26, 2010 at 4:27 PM, Benjamin R. Haskell <vim@benizi.com> wrote:
> On Mon, 26 Apr 2010, stosss wrote:
>
>> I have an ASCII table generated from an HTML file the curly quotes
>> show up as 147 and 148, when I type / and then press CTRL and then v I
>> get only this ^ if I type 147 ENTER I get this <93>
>
> ASCII does not contain 'curly quotes'.  Character 147 (hexadecimal 0x93)
> in Windows codepage 1252 [CP1252] (the Microsoft 'extension' of Latin-1
> [ISO-8859-1]) is the equivalent of Unicode codepoint U201C (decimal
> 8220).
>
>
>> I still don't understand how this works or what I am doing wrong.
>
> Your problem is with encodings.  The advice I would give depends on what
> your ultimate goal is.  (E.g. there are rare cases where I'd recommend
> keeping the Windows-y encoding.)
>
> :help 'encoding'
> :help 'fileencoding'

I was just reading through the FAQ at the general URL list in my OP of
this thread. I saw that section previously mentioned. It looked like
another way to do something that I learned how to do with help from
this list. I was just trying to figure out how to do what the FAQ
says. I could not. I read or attempted to read the help sections it
suggested. Still could not figure it out after messing around with it
so I posted my original question.

My main objective is to read through the entire FAQ, the help docs in
Vim, all the mail that comes on the list and experiment with Vim until
I have learned as much as I can. I don't like working with solutions
that I don't understand. I will put aside a faster solution and come
back to it after I have more experience. Then I usually have better
success figuring it out.

--
If we can but prevent the government from wasting the labours of the
people, under the pretence of taking care of them, they must become
happy. - Thomas Jefferson

--
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: