How do I paste text in insert mode without triggering auto-indent or mappings?
<C-r><C-o>"
The {register} sequence in insert mode pastes register contents literally — without triggering auto-indentation, abbreviations, or mappings.
245 results for ""+p"
<C-r><C-o>"
The {register} sequence in insert mode pastes register contents literally — without triggering auto-indentation, abbreviations, or mappings.
<C-x><C-n>
triggers keyword completion that searches only the current buffer for matches, scanning forward from the cursor.
zp
Pastes a blockwise register like p, but skips padding lines shorter than the block's right edge with trailing spaces.
ysst
vim-surround's ysst sequence lets you wrap a text object with an arbitrary HTML or XML tag and prompts you to type the tag name.
vim.lsp.completion.enable()
Neovim 0.
gp
The standard p command pastes text after the cursor but leaves the cursor at the beginning of the pasted text.
:echo getregtype('a')
The getregtype() function returns the motion type of a register's content — whether it was yanked characterwise, linewise, or as a visual block.
setreg()
The setreg(reg, value, type) and getreg(reg, 1, 1) functions give you full programmatic control over registers, including their type (characterwise, linewise, o
:set operatorfunc=MyFunc<CR>g@{motion}
Vim's operatorfunc and g@ let you define custom operators that accept any motion or text object, just like built-in operators d, c, and y.
packadd matchit
Vim ships with matchit.
expand('<cfile>')
The expand('') function returns the filename that Vim sees under the cursor — the same file that gf would open.
command-line #command-line #ex-commands #navigation #editing #motions
2<C-g>
Pressing prints the current filename, buffer status, and cursor position in the status line.
:put ={expr}
The :put ={expr} command evaluates a Vimscript expression and inserts the result as a new line below the cursor.
yiw
How it works The command yiw yanks (copies) the inner word under the cursor.
set statusline=%{MyCustomFunc()}
How it works Vim's statusline supports the %{expr} syntax which evaluates a Vimscript expression and displays the result.
:ptag {identifier}
:ptag {identifier} opens a small preview window showing the definition of the given tag, while keeping your cursor in the original window.
yiw{nav}viwp{nav}viwp
When you paste over a visual selection in Vim, the displaced text is moved into the unnamed register "".
registers #registers #visual-mode #editing #text-objects #normal-mode
set complete+=kspell
Adding kspell to the complete option makes and draw from the active spell word list — every word Vim considers correctly spelled.
qama{edits}'aq
How it works When a macro needs to jump to different parts of the file and then return to a starting position, marks are the perfect tool.
<C-r><C-f>
While typing a command, inserts the filename under the cursor in the buffer at the command-line prompt.