Vim Digraphs and Ligatures

alpha2phi
3 min readDec 31, 2020
Programming Symbols in Unicode

Overview

In my previous article Ligature Fonts for Terminal, VS Code, Neovim and Emacs, I showed you how to configure fonts with ligatures. In this article, I will show you how to configure Vim/Neovim to use Unicode characters to display programming symbols.

Digraphs

In Vim/Neovim, digraphs are used to enter characters that normally cannot be entered by an ordinary keyboard. These are mostly printable non-ASCII characters. The digraphs are easier to remember than the decimal number that can be entered with CTRL-V.

Type :digraphs and you can see a list of defined digraphs.

Pre-defined Digraphs

E.g. to enter the copyright symbol, in insert mode, type Control-K, and then Co (capital C and lower case o).

Digraphs in Vim/Neovim

For Visual Studio Code users, if you install vscodevim or vscode-neovim extension you can also use the digraph feature.

--

--

alpha2phi

Software engineer, Data Science and ML practitioner.