How to read Vim keystroke syntax?

All we need is an easy explanation of the problem, so here it is.

I’m trying to learn Vim and I’m seeing a lot of documentation use syntax like
<C-v>. Is there a general guide on how to read this correctly?

I’ve attached an example SO post below that uses this syntax:

Vim multiline editing like in sublimetext?

Do yourself a favor by droping the Windows compatibility layer. The normal shortcut for entering Visual-Block mode is <C-v>.

How to solve :

I know you bored from this bug, So we are here to help you! Take a deep breath and look at the explanation of your problem. We have many solutions to this problem, But we recommend you to use the first method because it is tested & true method that will 100% work for you.

Method 1

From within Vim, :help <> has a short overview of the notation Vim uses with a few examples, including:

<C-G>            CTRL-G
<C-LeftMouse>    Control- left mouse click

:help key-notation or :help keycodes will bring up a more thorough list of conventions used within Vim’s documentation (and typically copied by Vim users as well) to refer to various keys. One of the lines has this:

notation    meaning       equivalent   decimal   value(s)

<C-...>     control-key                          *control* *ctrl* *<C-*

Method 2

I am not sure if there is a general guide on vims documentation syntax. But from my experience < C-v> is equivalent to (ctrl + v).

This can be seen for example in this cheat sheet.

And in this question on SO

Note: Use and implement method 1 because this method fully tested our system.
Thank you 🙂

All methods was sourced from or, is licensed under cc by-sa 2.5, cc by-sa 3.0 and cc by-sa 4.0

Leave a Reply