Forgive my ignorance once more, but is there a way to tell vim that
I'd only like it to expand an abbreviation keyword if the file type
is .htm, .html or .mkd? I'd like to have some abbreviations for left
and right single 'book quotes' and I though that

    iab ''l ‘
    iab ''r ’

would speed up my writing. I've chosen to use two single quotes
followed by a position (l for left-side, r for right-side) because I
might want to use single quotes followed by either the letter 'l' or
the letter 'r' elsewhere in the same document. But still: how would
one go about telling vim "look; these may be in my .vimrc file but
only expand these when I'm in an HTML or Markdown document". Since
mistyping the above two abbreviations would be difficult (if not
impossible), it's more "I don't want HTML characters in TeX files"
than anything else. Because I write quite a lot in LaTeX and the rest
of the time in Markdown, I might develop a habit of typing ''l instead
of ` to produce an left single book quote---which would typeset
incorrectly if included in a LaTeX file.

Any help would be much appreciated and the offer of a beer is, as
always, on... well, offer.
Kevin Steinhardt

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

Reply via email to