How do I execute a single normal mode command without leaving insert mode?
Pressing while in insert mode drops you into a special "insert-normal" mode where you can execute exactly one normal mode command, then immediately return to in
category:
editing
tags:
#insert-mode
#normal-mode
#editing
#workflow
How do I append text to the end of multiple lines of different lengths?
When you need to append text to the end of several lines that have different lengths, visual block mode with $ is the key.
category:
visual-mode
tags:
#visual-mode
#editing
#block-mode
#insert-mode
How do I run a single normal-mode command without leaving insert mode?
While typing in insert mode, you sometimes need to do a quick normal-mode action — center the screen, jump to a mark, or delete a word backward.
category:
editing
tags:
#insert-mode
#normal-mode
#editing
#motions
How do I append text to the end of multiple lines that have different lengths?
Visual block mode normally selects a fixed-width column, which makes appending tricky when lines have different lengths.
category:
visual-mode
tags:
#visual-mode
#editing
#insert-mode
How do I paste register contents literally without triggering mappings in insert mode?
In insert mode, a pastes register a but processes the text as if typed, which can trigger abbreviations and mappings.
category:
registers
tags:
#registers
#insert-mode
#paste
#literal
How do I insert the result of a calculation directly while typing in insert mode?
The expression register (=) in insert mode lets you evaluate any Vimscript expression and insert the result inline.
category:
editing
tags:
#editing
#expression
#insert-mode
#calculator
How do I evaluate expressions and insert results inline in Vim?
The expression register (=) is one of Vim's most powerful yet underused features.
category:
registers
tags:
#registers
#insert-mode
#ex-commands
#editing
How do I paste a register's content in Insert mode without Vim adjusting the indentation?
The standard {reg} pastes register contents in Insert mode, but Vim may auto-indent multi-line text to match the current indentation level — sometimes manglin
category:
registers
tags:
#registers
#insert-mode
#editing
How do I paste the last yanked text while in Insert mode without using the unnamed register?
In Insert mode, {reg} pastes the contents of any register inline at the cursor.
category:
registers
tags:
#registers
#insert-mode
#editing
How do I create a custom undo checkpoint while in Insert mode so I can undo in smaller steps?
By default, Vim treats an entire Insert mode session (from entering Insert mode to pressing ) as a single undo unit.
category:
editing
tags:
#editing
#insert-mode
#undo-redo
How do I indent or unindent the current line while staying in Insert mode?
While in Insert mode, you can adjust indentation without switching back to Normal mode.
category:
editing
tags:
#editing
#insert-mode
#indentation
How do you paste from a specific register while in insert mode?
In insert mode, press followed by the register name.
category:
registers
tags:
#registers
#insert-mode
#paste
How do I automatically close brackets and quotes as I type?
auto-pairs automatically inserts closing brackets, parentheses, and quotes when you type the opening one.
category:
plugins
tags:
#plugins
#insert-mode
#editing
How do I insert a Unicode character by its code point?
<C-v>u{code} in insert mode
In insert mode, u followed by a 4-digit hex code inserts the Unicode character at that code point.
category:
editing
tags:
#editing
#insert-mode
How do I append text at the end of multiple lines using visual block?
Combining visual block mode with $ and A lets you append text at the end of multiple lines, even when the lines have different lengths.
category:
visual-mode
tags:
#visual-mode
#insert-mode
#editing
How do I create text abbreviations that auto-expand while typing in Vim?
:iabbrev {abbr} {expansion}
How it works The :iabbrev command creates abbreviations that automatically expand when you type them in insert mode.
category:
editing
tags:
#editing
#insert-mode
#ex-commands
How do I set up automatic typo correction in Vim using abbreviations?
Vim's abbreviation feature lets you define automatic text replacements that trigger as you type.
category:
command-line
tags:
#insert-mode
#editing
#ex-commands
How do I use the expression register inside a macro for dynamic values?
How it works The expression register (=) lets you evaluate Vimscript expressions and insert the result.
category:
macros
tags:
#macros
#registers
#insert-mode
How do I use a macro to wrap each word in quotes?
How it works This macro wraps the current word in double quotes and moves to the next word, making it easy to repeat across a line or file.
category:
macros
tags:
#macros
#editing
#normal-mode
#insert-mode
How do I insert a Unicode character by its code point in Vim?
In insert mode, followed by u and a 4-digit hex code inserts the Unicode character with that code point.
category:
editing
tags:
#editing
#unicode
#insert-mode
#special-characters