Saturday, October 8, 2016

Re: How to input character 'ƒ' (U+0192)

On 2016-10-08 12:13, L. A. Walsh wrote:
> In various locations on windows I can use ALT+0131 (on the numeric
> pad) to display/input the Unicode "function symbol", 'ƒ', which is
> unicode char 0192 (it's also the Florin currency symbol in the
> Netherlands and called a LATIN SMALL LETTER F with HOOK).
>
> When I try to input to to Gvim either running natively or
> via 'X', entry via the numeric pad doesn't seem to work and
> I can't figure out how to enter 'ƒ', from the keyboard.
>
> Is there a way? Or maybe a way to insert it with a macro?

In insert mode, using control+V followed by "u" ("Unicode") followed
by 0192 gives me the character you show. You can make a digraph, say
something like "f," to make it easier to remember:

:digraph f, 402

(402 is the decimal equivalent of the hexadecimal 0192 that you
want). Then, in running text, you can use control+k followed by the
"f," (no quotes) to get the character.

If you use it more frequently and want something with fewer
characters, you can create a insert-mode mapping something like

:inoremap <f4> <c-v>u0192

letting you use <f4> to input your symbol.

Hope this helps,

-tim


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

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

No comments:

Post a Comment