Benji Fisher wrote:
On Wed, Oct 18, 2006 at 01:21:31AM +0200, A.J.Mechelynck wrote:
After reading this thread, I've seen "requests for improvement" to the Vim source; but let's try to find (for the time being) something which works in the current Vim version.

1. Em dashes should normally be set apart from the neighbouring words by blank spaces -- like this -- and if they are, they won't be mistaken for part of a word regardless of whether 'iskeyword' includes the dash.
[snip]

     That depends on your style manual.  The one I read, back in my
typewriter days, insisted on dashes without spaces on either side--like
this.  Also, vim will recognize your "--" as a word if 'isk' includes
"-", and that might cause problems.

HTH                                     --Benji Fisher


Oh? Apparently styles differ. All em dashes that I remember seeing in printed books had spaces around them; but that's mostly in French (where the em dash is used not only as a kind of "super-parenthese" but also to mark change of locutor in direct speech) and in Russian (where it can replace the nonexistent present tense of the verb "to be"). I think it's rarer in English.

As for recognising "--" as a word, IMHO it'll cause fewer problems than recognising "spaces--like" "this--and" "side--like" etc. as (misspelled) words. If I were using the spell checker, I might even add "--" to my "user" wordlist.


Best regards,
Tony.

Reply via email to