Sunday, March 19, 2023

Re: Displaying the British pound key using the compose key

On 2023-03-18 21:02, cjsmall wrote:
> However, I've been using the Compose key on my Sun Type 6 keyboard to
> enter most of the Unicode characters, simply replacing Ctrl-K
> with Compose. So far this has worked with every digraph
> combination except the British Pound symbol. "Compose $ $" just
> inputs a $. Is there some mapping I could place in my .vimrc file
> that would generate the same output?

The Compose key is a thing in X before it ever reaches the terminal
or even vim. I prefer the default

<Compose> L -

which feels much more intuitive to me (I do all such character
compositions through the X Compose key and never use vim's digraphs
unless I'm helping someone with a vim digraph-related issue).

However, if you do want

<Compose> $ $

to make the British Pound symbol, you can create a ~/.XCompose file,
something like

$ cat >> ~/.XCompose

include "%L"
<Multi_key> <$> <$>
^D

I'm not exactly positive on the notation for the dollar key, so it
might be something like

<dollar>

instead of

<$>

but you can use xev(1) to show the key-name.

You might then have to restart vim (or possibly even restart your
X session)

-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.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/ZBcNlXui13zff1X3%40thechases.com.

No comments:

Post a Comment