How do I copy characters from the line above or below the cursor while staying in insert mode?
<C-y> (above) / <C-e> (below)
In insert mode, inserts the character from the same column one line above, and inserts the character from the same column one line below.
category:
editing
tags:
#editing
#insert-mode
#normal-mode
How do I paste register contents in insert mode without triggering auto-indentation?
When you paste a register in insert mode with {reg}, Vim inserts the text as if you had typed it — which means auto-indent, abbreviation expansion, and other
category:
registers
tags:
#registers
#insert-mode
#paste
#autoindent
#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 include dictionary and spelling words in Vim's insert-mode autocomplete?
Vim's built-in completion ( / ) sources matches from buffers, included files, and tags by default.
category:
editing
tags:
#completion
#insert-mode
#spell
#editing
#config
How do I execute a single normal mode command without leaving insert mode?
Pressing in insert mode lets you execute one normal mode command and then automatically returns you to insert mode.
category:
editing
tags:
#editing
#insert-mode
#normal-mode
#productivity
How do I move the cursor in insert mode without creating an undo break point?
By default, moving the cursor with arrow keys while in insert mode creates an undo break — meaning a subsequent u will undo only back to when you last moved,
category:
editing
tags:
#insert-mode
#undo-redo
#editing
#advanced
How do I prevent cursor movement in insert mode from splitting the undo block?
inoremap <Left> <C-g>U<Left>
In insert mode, any cursor movement — including arrow keys, Home, and End — causes Vim to split the undo block at that point.
category:
editing
tags:
#insert-mode
#undo-redo
#editing
How do I complete identifiers using ctags from within insert mode?
Pressing in insert mode opens a completion menu populated from your project's tags file.
category:
editing
tags:
#completion
#insert-mode
#editing
How do I insert special Unicode characters using digraphs in Vim?
Vim's digraph system lets you insert special characters by pressing followed by a two-character mnemonic code.
category:
editing
tags:
#editing
#digraph
#unicode
#special-characters
How do I insert special characters like arrows, math symbols, or accented letters in Vim?
Vim has a built-in digraph system that lets you type special characters using short two-character codes.
category:
editing
tags:
#editing
#insert-mode
#unicode
#special-characters
How do I enable fuzzy matching for insert mode completion in Neovim 0.11?
Neovim 0.
category:
config
tags:
#completion
#config
#insert-mode
How do I create an insert-mode abbreviation that expands a short sequence into longer text?
The :iabbrev command defines insert-mode abbreviations — short character sequences that automatically expand into longer text when you type a non-keyword char
category:
config
tags:
#insert-mode
#abbreviations
#config
#editing
How do I insert text at the very first column of a line, ignoring indentation?
Most Vim users know I to insert at the start of a line — but I actually jumps to the first non-blank character, skipping leading whitespace.
category:
editing
tags:
#editing
#insert-mode
#normal-mode
#indentation
How do I insert shell command output without leaving the command line?
In command-line mode, =system('command') evaluates the shell command and inserts its output into the command line.
category:
command-line
tags:
#command-line
#ex-commands
How do I complete words using a thesaurus for synonym suggestions in Vim insert mode?
Vim's insert-mode completion includes a thesaurus mode triggered by .
category:
editing
tags:
#editing
#completion
#insert-mode
#writing
How do I paste a register literally in insert mode without triggering auto-indent or special key handling?
When you press x in insert mode to paste a register, Vim inserts the text "as if you typed it" — meaning autoindent, textwidth, and other insert behaviors can
category:
registers
tags:
#registers
#insert-mode
#editing
How do I insert the current date or time into the buffer using Vim's built-in expression evaluation?
:put =strftime('%Y-%m-%d')
The :put = command inserts the result of a Vimscript expression directly into the buffer as a new line.
category:
editing
tags:
#editing
#ex-commands
#registers
#insert-mode
How do I insert sequential line numbers using visual block mode?
<C-v>jjI\=printf('%02d ', line('.')-line("'<")+1)<CR><Esc>
By combining visual block insert with Vim's expression register, you can insert dynamically computed line numbers at the start of each selected line.
category:
visual-mode
tags:
#visual-mode
#block-mode
#line-numbers
#expression-register
How do I change the cursor shape to a thin bar in insert mode and a block in normal mode in Neovim?
:set guicursor=n-v-c:block,i-ci-ve:ver25,r-cr:hor20
Neovim's guicursor option lets you assign a distinct cursor shape and style to each mode, providing immediate visual feedback about which mode you are in.
category:
config
tags:
#config
#normal-mode
#insert-mode
#visual-mode
How do I speed up Vim's insert mode completion by disabling include-file scanning?
Vim's complete option controls which sources are scanned when you press or to complete a word.
category:
config
tags:
#completion
#config
#performance
#insert-mode