5 ms·
vim has good support through digraphs, :digraphs will list them, and then to enter, either C-K <char1> <char2>, or <char1> <BS> <char2> for example ö is C-K
by pacaro 13y ago
vim has good support through digraphs, :digraphs will list them, and then to enter, either C-K <char1> <char2>, or <char1> <BS> <char2>
for example ö is
C-K o :
or
o <BS> :
see http://vimdoc.sourceforge.net/htmldoc/digraph.html http://vimdoc.sourceforge.net/htmldoc/digraph.html for more details
- krick 13y agoDespite knowing vim digraphs I personally use XCompose for that these days. It's easier to configure and I can use the same shortcut for every program, wich makes memorizing vim digraphs useless.
- jeorgun 13y agoI'd mostly agree, but vim's digraphs are kind of essential when using gvim, since GTK+ seems to have an inexplicable vendetta against custom .XCompose files.
- krick 13y agoI don't know what to say. I am using gvim and my .XCompose settings seem to be fine. And I don't remember me having any troubles with that so I would have to fix something ever…
- jeorgun 13y agoAs it turns out, you're completely right. Oops. In case anyone else happens to have the same issue, I solved it by sticking export GTK_IM_MODULE=xim in /etc/environment .
- edwintorok 13y agoThanks, I can't believe I've been using Vim without knowing about this. The mappings for greek letters are particularly easy to remember.
- saraid216 13y agoSlightly less relevant, but if you use Mac OS X, this type of support is also available generally. For instance, Option+E then E results in é.
- omaranto 13y agoBut isn't that extremely limited? Does Mac OS X have keyboard shortcuts for entering greek letters or the infinity symbol.
- saraid216 13y agoIt's absolutely very limited. It has a shortcut for ∞ (Option+5), but "Greek letters" is too large of a set for the space provided. But being able to do that let me do data entry on documents written in Swedish (which has the additional characters of é, å, ä, ö, and à) after about 10 seconds of ramping up figuring out where the desired keys were. I'm sure there's a summary somewhere on the interwebz.