Type Mac Command symbol in vim

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Type Mac Command symbol in vim

Peng Yu
Hi,

digraph is a powerful way to typing many symbols. But I don't see a
Mac Command symbol available. Is there a way to type Mac Command
symbol in vim? Thanks.

--
Regards,
Peng

--
--
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 [hidden email].
For more options, visit https://groups.google.com/groups/opt_out.
Reply | Threaded
Open this post in threaded view
|

Re: Type Mac Command symbol in vim

Tim Chase
On 2013-11-30 17:39, Peng Yu wrote:
> digraph is a powerful way to typing many symbols. But I don't see a
> Mac Command symbol available. Is there a way to type Mac Command
> symbol in vim? Thanks.

A quick experimentation shows this works on mine:

  :digraph %% 8984

and then you can use "%%" to enter the cloverleaf in vim's digraph
mode (after pressing control+K).  This is obviously subject to
'encoding' and 'fencoding' settings, but with both set to "utf8", it
works for me in gvim.

-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 [hidden email].
For more options, visit https://groups.google.com/groups/opt_out.
Reply | Threaded
Open this post in threaded view
|

Re: Type Mac Command symbol in vim

Peng Yu
Thanks. Can this be made into the vim default installation?

On Sat, Nov 30, 2013 at 5:47 PM, Tim Chase <[hidden email]> wrote:

> On 2013-11-30 17:39, Peng Yu wrote:
>> digraph is a powerful way to typing many symbols. But I don't see a
>> Mac Command symbol available. Is there a way to type Mac Command
>> symbol in vim? Thanks.
>
> A quick experimentation shows this works on mine:
>
>   :digraph %% 8984
>
> and then you can use "%%" to enter the cloverleaf in vim's digraph
> mode (after pressing control+K).  This is obviously subject to
> 'encoding' and 'fencoding' settings, but with both set to "utf8", it
> works for me in gvim.
>
> -tim
>
>
>



--
Regards,
Peng

--
--
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 [hidden email].
For more options, visit https://groups.google.com/groups/opt_out.