Skip to content

C-I/Tab behaviour is weird, is this expected? #28718

Answered by zeertzjq
IndianBoy42 asked this question in Q&A
Discussion options

You must be logged in to vote

<C-v><C-i> and <C-v><Tab> gives the same results: a tab space

Even <C-v><C-m> and <C-v><CR> gives the same results: ^M

This is expected. See :h i_CTRL-V:

						*i_CTRL-V*
CTRL-V		Insert next non-digit literally.  It's also possible to enter
		the decimal, octal or hexadecimal value of a character
		|i_CTRL-V_digit|.
		The characters typed right after CTRL-V are not considered for
		mapping.
		For special keys, the CTRL modifier may be included into the
		key to produce a control character.  If there is no control
		character for the key then its |key-notation| is inserted.
		Note: When CTRL-V is mapped (e.g., to paste text) you can
		often use CTRL-Q instead |i_CTRL-Q|.

						*i_CTRL-Q…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by IndianBoy42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants