Sunday, August 5, 2012

Re: Encoding of double quotes by Vim

On Aug 05, 2012 at 05:16 PM -0400, Eric Weir wrote:
>Thanks for the information on what Vim does, Tony. As my response to
>Alick indicates, the LyX folks are aware of the problem and that it is
>their's.

I think the point people are trying to make that a) it's a property of
LyX and not Vim and b) it's not necessarily a 'problem' in LyX. If LyX
is using TeX for it's typesetting, the way you type open and closing
quotes is with ` and ' as said before (and `` and '' for double quotes).
It's not 'fixing' the problem to do it that way - it's doing it properly
that way. Typing a sentence like this with a "word" in quotes is wrong.
First, I used a " and not '', and second, I need to specify the opening
and closing quotes using ` or ' as appropriate. Note, where I typed
'problem' and 'fixing' in this email wouldn't format correctly in TeX,
but that's ok, because this is an email.

As stated by someone else, you might want to try the Vim package that
inserts the right quote while typing TeX for you, or you could just type
it correctly yourself. It's possible that there is a TeX package that
does smart quoting for you, but I'm not aware if there is. I'm also not
familiar with how (and if) you can add packages to LyX. I use LaTeX
myself quite a bit, but I just call it from Vim with a keymap and
preview it in Skim, so have never found the need for LyX. No need to
paste any of my text/source into another program that way.

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

No comments: