Re: Automatically doing em dashes in Vim?
Steve M Bibayoff <[email protected]> Tue, 7 Oct 2025 21:00:26 -0700
| Newsgroups | gmane.org.user-groups.linux.cabal |
|---|---|
| Message-ID | <CAELH=z+pkqmZaeH5yF8Cvf_fshyT-QufegzQjEERm1cCOMRb8w@mail.gmail.com> |
--===============0730945124== Content-Type: multipart/alternative; boundary="00000000000090520306409db931" --00000000000090520306409db931 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hello, On Tuesday, October 7, 2025, Don Marti <[email protected]> wrote: If I'm editing an HTML or Markdown/CommonMark file, and I type a word > character followed by a semicolon followed by another word character, wha= t > I want instead of the semicolon is an em dash (either the HTML — or > the Unicode =E2=80=94 I'm not picky.) Semicolons at the end of a line or= followed > by a space should be left unchanged. > Have you tried something like this yet? nnoremap <expr> <;> {I can't think of the condition right now} Sorry, my mind is currently mush, but maybe will this will put you in the right direction. Steve --00000000000090520306409db931 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hello,<br><br>On Tuesday, October 7, 2025, Don Marti <<a href=3D"mailto:= [email protected]">[email protected]</a>> wrote:<div><br><blockquote class=3D"= gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-= left:1ex"> If I'm editing an HTML or Markdown/CommonMark file, and I type a word c= haracter followed by a semicolon followed by another word character, what I= want instead of the semicolon is an em dash (either the HTML &mdash; o= r the Unicode =E2=80=94=C2=A0 I'm not picky.) Semicolons at the end of = a line or followed by a space should be left unchanged.<br> </blockquote><div><br></div><div>Have you tried something like this yet?</d= iv></div><div>nnoremap <expr> <;>=C2=A0 {I can't think of t= he condition right now}</div><div><br></div><div>Sorry, my mind is currentl= y mush, but maybe will this will put you in the right direction.</div><div>= <br></div><div><br></div><div>Steve=C2=A0</div><div><br></div> --00000000000090520306409db931-- --===============0730945124== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ conspire mailing list [email protected] http://linuxmafia.com/mailman/listinfo/conspire --===============0730945124==--