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.
E.g. to enter the copyright symbol, in insert mode, type Control-K
, and then Co
(capital C and lower case o).
For Visual Studio Code users, if you install vscodevim or vscode-neovim extension you can also use the digraph feature.