How do I autocomplete words from a dictionary file while typing in insert mode?
<C-x><C-k>
Vim's insert-mode completion system includes dictionary lookup via .
<C-x><C-k>
Vim's insert-mode completion system includes dictionary lookup via .
zm
Instead of jumping between fully open (zR) and fully closed (zM), zm and zr let you step through fold levels one at a time.
<C-x><C-t>
Vim's insert-mode completion includes a thesaurus mode triggered by .
:set synmaxcol=200
The synmaxcol option tells Vim the maximum column up to which it will apply syntax highlighting on each line.
1z=
The z= command opens an interactive numbered menu of spelling corrections for the word under the cursor, requiring you to type a number and press Enter.
:g/^$/,/./-j
The command :g/^$/,/.
<C-x><C-e> and <C-x><C-y>
While in insert mode, scrolls the window up one line and scrolls it down one line — all without leaving insert mode.
zg
When Vim's spell checker flags a technical term, proper noun, or project-specific identifier as misspelled, you can permanently silence it with zg ("mark as goo
:set softtabstop=4
When expandtab is enabled, Vim inserts spaces instead of a real tab character, but without softtabstop, Backspace only deletes one space at a time — not a ful
zR and zM
When working with a heavily folded file, manually opening or closing each fold is tedious.
<C-x><C-u>
Vim's invokes a user-defined completion function, letting you plug any completion logic you want into the standard insert-mode completion popup.
<C-x><C-i>
Vim's completion mode searches for keyword matches not just in the current buffer, but also in all files reachable via include directives (e.
:'<,'>sort n
By default, :sort in Vim uses lexicographic (alphabetical) ordering, so "10" sorts before "2" because "1" sort n — sort selected lines by the leading number,
:earlier 1f
The :earlier {count}f command navigates Vim's undo tree to the state of the buffer at the time of the last (or Nth) file write.
'[ and ']
Vim automatically sets two special marks after every change, yank, or put operation: '[ and '].
zd
zd removes the fold definition at the cursor position — the text inside the fold is not deleted.
:checkhealth
Neovim ships with a built-in health framework that runs diagnostic checks for core components and installed plugins.
:set spelloptions=camel
By default, Vim treats camelCase as a single word and flags it as a spelling error even when both camel and case are correctly spelled.
:diffget LOCAL
When Vim is configured as a git mergetool, it opens a three-way split with the LOCAL (your branch), REMOTE (their branch), and MERGED (the output file) buffers.
buffers-windows #buffers-windows #diff #editing #command-line
:g//d
:g//d uses an empty pattern in the global command, which instructs Vim to reuse the last search pattern.