On Sat, Sep 5, 2015 at 11:09 AM, Tony Mechelynck <
[email protected]> wrote:

> On Monday, August 31, 2015 at 11:13:03 AM UTC+2, Kevin Lozandier wrote:
> > Ligature support being added to Vim I highly recommend being pursued
> more than ever.
> >
> >  Mainstream monospace fonts are now supporting ligatures that add
> sensible & rational value to everyday programmers.
> >
> > Montotype fonts with ligatures allow programmers to more clearly see the
> intent of typed code. To account for those who have unique requirements to
> use non-monotype  fonts, this should be an explicit option added to Vim
> 7.5/8.
>
> You mean the following?
> ff U+FB00 LATIN SMALL LIGATURE FF
> fi U+FB01 LATIN SMALL LIGATURE FI
> fl U+FB02 LATIN SMALL LIGATURE FL
> ffi U+FB03 LATIN SMALL LIGATURE FFI
> ffl U+FB04 LATIN SMALL LIGATURE FFL
> ſt U+FB05 LATIN SMALL LIGATURE LONG S T
> st U+FB06 LATIN SMALL LIGATURE ST
>
> Vim already supports them (with +multi_byte compiled-in, some iconv
> library available if it is dynamically linked, and 'encoding' set to UTF-8,
> of course). IIRC, it already supported them in version 6.2 and maybe
> earlier.
>
> If you want to make these ligatures more easily accessible and not have to
> remember their character codes, you could for instance add the following to
> your vimrc:
>
>     dig ff 64256 fi 64257 fl 64258 qi 64259 ql 64260 qt 64261 st 64262
>
> and voilà: from there, Ctrl-K f f (three keystrokes, the first one a
> two-key chord) in Insert mode gives ff (one character) in the file being
> edited.
>
> See:
>   :help :digraphs
>   http://www.unicode.org/charts/PDF/UFB00.pdf
>   http://vim.wikia.com/wiki/Working_with_Unicode
> etc.


​Several monospace fonts have recently grown support for programmer-related
ligatures, such as https://github.com/i-tu/Hasklig and
https://github.com/tonsky/FiraCode.

BTW, there's a great list of monospaced fonts at
https://github.com/chrissimpkins/codeface​
-- 
/George V. Reilly  [email protected]  Twitter: @georgevreilly
*www.GeorgeVReilly.com <http://www.georgevreilly.com/>*

-- 
-- 
You received this message from the "vim_dev" 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

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui