Am Samstag, 8. Juni 2024, 15:40:48 MESZ schrieb Meowie Gamer: > vim has a WHAT?! You gotta tell me how to use that.
Digraphs are graphs (i.e. characters) that are entered using two other characters. Basically it’s the same principle as the X11 compose key, but specific to vim. If you enter :dig[raph], you get a list of all defined such digraphs. The output of the ga command (print ascii info) includes the digraph combo, if one exists for the highlighted character. The unicode plugin behaves similarly. You can also define your own. The feature is used in insert mode and triggered with <C-k>, after which you press the two characters. For example, there are predefined digraphs for Cyrillic, Greek and Japanese Hiragana and Katakana. And you can paint boxes easily thanks to the mnemonics involved. A lowercase character denotes a thin line, an uppercase a thick line. The characters themselves signify the “direction” of the line; u=up, r=right, l=left, d=down, v=vertical, h=horizontal. So to paint a thin vertical light with a thick line branching to the right, you press <C-k>vR: ┝. See :help dig for more. -- “Privacy laws are our biggest impediment to us obtaining our objectives.” — Michael Eisner, CEO of Disney, 2001