How do I insert special Unicode characters using digraphs in Vim?
<C-k>DG
Vim's digraph system lets you insert special characters by pressing followed by a two-character mnemonic code.
210 results for "insert mode"
<C-k>DG
Vim's digraph system lets you insert special characters by pressing followed by a two-character mnemonic code.
<C-x>s
When spell checking is enabled (:set spell), s in insert mode opens a popup menu of suggested corrections for the most recently flagged misspelled word — with
<C-r>/
Vim stores your last search pattern in the / register.
o
The o command opens a new line below the current line and places you in insert mode, ready to type.
<C-r>:
Vim stores your last executed Ex command in the read-only : register.
<C-t> / <C-d>
While in Insert mode, you can adjust indentation without switching back to Normal mode.
<C-t> and <C-d>
When you're typing in insert mode and realize the current line needs more or less indentation, you don't have to leave insert mode to fix it.
:put ={expression}
The :put command inserts the contents of a register as a new line below the cursor.
ci{
The ci{ command deletes everything inside the nearest pair of curly braces {} and places you in insert mode to type a replacement.
<C-h> / <C-w> / <C-u>
Vim provides three levels of deletion directly in insert mode, so you don't need to switch to normal mode for small corrections.
<C-r>.
In insert mode, .
". / "% / ": / "# registers
Vim has four read-only special registers that automatically contain useful contextual information.
registers #registers #special-registers #workflow #productivity
:iabbrev {abbr} {expansion}
How it works The :iabbrev command creates abbreviations that automatically expand when you type them in insert mode.
<C-r>0
In Insert mode, {reg} pastes the contents of any register inline at the cursor.
<C-r>=expand('%:t')<CR>
In insert mode, = opens the expression register.
c in visual mode
Select text visually, then press c to delete the selection and enter insert mode.
ci(
The ci( command deletes everything inside the nearest pair of parentheses and places you in insert mode, ready to type a replacement.
ciw
The ciw command deletes the inner word under the cursor and drops you into insert mode so you can type a replacement.
"#p or <C-r># in insert mode
The # register always contains the name of the alternate file — typically the file you were editing just before the current one.
<C-y> / <C-e>
When typing in insert mode, you can pull individual characters from adjacent lines without leaving insert mode.