Skip to content

How to indent in a snippet? #599

Closed Answered by Jint-lzxy
Tgist1024 asked this question in Q&A
Mar 27, 2023 · 2 comments · 8 replies
Discussion options

You must be logged in to vote

@Tgist1024 If you want neovim to interpret your next input literally, you can always use <C-v> in insert mode (or <C-q> if <C-v> is not available). For this situation, you may use the combination <C-v><Tab>.

In normal mode, @CharlesChiuGit's solution should suffice.

FYI:

						*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.

Replies: 2 comments 8 replies

Comment options

You must be logged in to vote
7 replies
@Tgist1024
Comment options

@Tgist1024
Comment options

@CharlesChiuGit
Comment options

@CharlesChiuGit
Comment options

@Tgist1024
Comment options

Comment options

You must be logged in to vote
1 reply
@Jint-lzxy
Comment options

Answer selected by Jint-lzxy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants