about summary refs log tree commit diff
path: root/content/til/insert-unicode.md
blob: 0fd6b2848a82517864d664302e64e29ab6bfa5f5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
---
title: "TIL How to insert unicode in vim"
date: 2022-02-20
lang: en
categories: [ til ]
tags: [vim, how-to, unicode]
translationKey: "vim-insert-unicode"
---

Today I learned how to insert unicode in Vim.  It's simple:

In insert mode, type <kbd>Ctrl+V</kbd>, then type <kbd>u</kbd>, then type the
hex unicode.

You can also type character like escape (shown as `^[`) or carriage return
(shown as `^M`) by typing <kbd>Esc</kbd> or <kbd>Enter</kbd> respectively.