How do I include dictionary and spelling words in Vim's insert-mode autocomplete?
:set complete+=kspell
Vim's built-in completion ( / ) sources matches from buffers, included files, and tags by default.
245 results for ""+p"
:set complete+=kspell
Vim's built-in completion ( / ) sources matches from buffers, included files, and tags by default.
:call setreg('q', getreg('a'), getregtype('a'))
Simple register copies can silently change behavior when register type is lost.
%:S
When you build shell commands from Vim, file paths with spaces or special characters can break the command unless properly escaped.
command-line #command-line #filename-modifiers #shell #expansion
yyp
The yyp command duplicates the current line by yanking it and immediately pasting it below.
viwp
The viwp command visually selects the word under the cursor and replaces it with the contents of the unnamed register (your last yank or delete).
visual-mode #editing #visual-mode #registers #paste #productivity
<C-x><C-k>
Vim's insert-mode completion system includes dictionary lookup via .
:pedit +/TODO %
When you need a second read-only view of the same file, opening more normal splits can disrupt your working layout.
:0put
The :put Ex command inserts register contents as a new line below the specified line number.
<C-w>z
Pressing z closes the preview window from any window in the current tab page.
:G log -- %
vim-fugitive's :G log -- % loads the git commit history for the current file into a quickfix-style log buffer.
:packadd! matchit
Vim's % command jumps between matching brackets by default.
plugins #navigation #plugins #text-objects #matching #normal-mode
v (netrw)
When browsing files in Vim's built-in file manager (Netrw), pressing v on any file opens it in a vertical split to the right.
:call setreg('b', getreg('a'), getregtype('a'))
Plain register copies like :let @b = @a move text, but they can lose important metadata about register type.
<C-x><C-l>
The command triggers whole-line completion in insert mode.
:m +1
The :move command (abbreviated :m) relocates lines to a new position in the buffer without touching any registers.
:packadd matchit
The matchit plugin ships with Vim and Neovim but is not enabled by default.
<C-r>:
Vim stores your last executed Ex command in the read-only : register.
+ and -
The + and - motions jump to the first non-blank character of the next or previous line respectively — combining vertical movement and ^ into a single, count-a
:put =''
Using :put ='' with an empty expression lets you insert blank lines in normal mode without ever entering insert mode.
editing #editing #normal-mode #ex-commands #expression-register #blank-line
<C-x><C-]>
Pressing in insert mode opens a completion menu populated from your project's tags file.