4 ms·
Vim uses something similar to this which it calls digraphs (see :help digraph). http://vimdoc.sourceforge.net/htmldoc/digraph.html http://vimdoc.sourceforge.net
by sudobash1 5y ago
Vim uses something similar to this which it calls digraphs (see :help digraph). http://vimdoc.sourceforge.net/htmldoc/digraph.html http://vimdoc.sourceforge.net/htmldoc/digraph.html
Ctrl+k a e = æ
- randlet 5y agoTIL. Thanks. I love how I keep learning new things about vim after years of daily usage.
- sundarurfriend 5y agoYou can also add your own digraphs. I've used this to make entering emojis easier, for eg. execute 'digraph :) 128578' so that Ctrl-K :) in insert mode inserts . (`execute 'digraph :\| 128528'` => , `execute 'digraph /\ 128591' ` => , etc.) Edit: I guess HN strips emojis from comments? Just try these and find out which ones they are, I guess! This was before I knew that the Julia plugin allows emoji entry too (\:<Tab>), but I still find this more convenient for the common ones because the names of emoji are all over the place.