Hi folks, I want to setup a few more digraphs according to my need. But while defining those I am running into error.
For example, I want to add ℕ (symbol for natural numbers set) as
N| (N followed by the pipe character) but when defining the
digraph as
: digraphs N| 8469
it is throwing E474.
Can I not use the pipe character while defining digraphs?
maybe this page is of help, it uses a different digraph: https://mullikine.github.io/posts/adding-new-digraphs-to-vim-and-evil/
I did look up this page but I wanted to use pipe character because when I actually write ℕ symbol on paper, I write N first then the horizontal line on it. By using pipe, I would remember easily what the digraph is.
The | character separates commands in ex-mode. You can use it in your digraph, but you need to backslash escape it: : digraphs N\| 8469 The ex-mode | thing dates back to pre-vim days of real ex and vi. It's not used often, and easy to overlook / forget.