Newer Post

Adventures in PWA Land Part II: The Back-End

Older Post

A Short List of Good Practices in Programming

Inserting Unicode Characters in Vim

Imagine you are writing a basic to-do list in Vim:

- Write a failing test
- Make the test pass 
- Refactor

When you finish the first task, you want to add a check mark next to it:

✓ Write a failing test
- Make the test pass
- Refactor

To do this in vim, you can use the following command: i Ctrl+v u2713.

Let us break that down:

  • i go into INSERT mode
  • Ctrl+v go into ins-special-keys mode
  • u2713 insert the Unicode character CHECK MARK (U+2713)

You might be wondering: “What if I do not know the code for the character I want to insert?” That is where the handy unicode.vim plugin comes in.

Once you install unicode.vim, you can run the :SearchUnicode command. In the previous case, you would run :SearchUnicode check mark, and the following window would pop up:

You will see a list of all matching Unicode characters with their corresponding codes, so you can use them with ins-special-keys.

We'll help you unleash.

Join the 30,000 developers who subscribe to our newsletter.

Scale your
Development team

We help you execute projects by providing trusted developers who can join your team and immediately start delivering high-quality code.

Hire Developers