about summary refs log tree commit diff
path: root/content/sw-notes/insert-unicode.md
blob: c897fc3fcaa1aab6da7629453cef80deb05aa1d0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
---
title: "How to insert unicode in vim"
date: 2022-02-20
lang: en
categories: [software, guide]
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.