Tuesday, September 21, 2010

Re: to or till (f or t) a non-ascii character

> I thought, I would mention digraphs, because they could be useful here.
>
> That means typing <Ctrl-K> '=' '>' should give you the same character. (I
> don't see it here, as my font, does not seem to provide a glyph here).
> It is also worth at least considering to set the 'digraph' option. If it
> is set, you type the first key, backspace and the second key and it will
> result in your digraph. (e.g. pressing 'a', <BS>, ':' results in ä)

Digraphs look like an awesome solution; I just need to add a few more
maps to the digraph table.
From first impressions, they look just as easy to use as abbreviations
(one extra keystroke), with the advantage that they also work with 't'
and 'f'.

How do they deal with a common prefix to two different digraphs, though?

> The f and t commands work when using digraphs. I.e. if you want to
> jump to the ä, you press f <Ctrl-K> a : and f jumps to the ä
> (but don't work when 'digraph' is set and you want to enter them using
> the backspace key).
>
> Oh, and then there is this plugin, I wrote long ago. It provides digraph
> and Unicode completion. http://www.vim.org/scripts/script.php?script_id=2822
> (don't know if it useful, but I thought, I'd mention it anyway).

Thanks for the link. Not sure I need this, but if I ever want it I'll
look again.

> regards,
> Christian

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

No comments:

Post a Comment