Inserting Unicode Characters


Inserting unicode characters into a document can be cumbersome, and for many the default process is to do a quick web search to find the desired character, then copy and paste it into the document. While Neovim can't make it easier to remember all of the code points, it does make the process of inserting it into a document slightly easier.

Suppose we are shopping with a simple shopping list, and just bought coffee so we want to update the shopping list. Let's move the cursor into position then check that line off:

Initial Conditions
·milk
·coffee
·eggs
NORMAL50%2:1
 

The first step is to type s (substitute), to delete the current character and enter insert mode.

Start a substitutions
·milk
·coffee
·eggs
INSERT50%2:1
 

Next, we hit C-V, followed by u and the Unicode code point we want to insert.

Insert the Unicode<C-v>u2713
·milk
·coffee
·eggs
INSERT50%2:2
 

Finally, hit Esc to return to normal mode:

Final Result<Esc>
·milk
·coffee
·eggs
NORMAL50%2:1