How do I enable spell checking in Vim?
:set spell
The :set spell command activates Vim's built-in spell checker, which highlights misspelled words directly in your buffer.
:set spell
The :set spell command activates Vim's built-in spell checker, which highlights misspelled words directly in your buffer.
:syntax on
The :syntax on command enables syntax highlighting in Vim, colorizing your code based on the file type.
:g/pattern/normal dd
The :g/pattern/normal {commands} command executes normal mode keystrokes on every line in the file that matches the given pattern.
:g/pattern/command
The :g/pattern/command (global) command executes an Ex command on every line in the file that matches the given pattern.
:noh
The :noh (short for :nohlsearch) command clears the highlighting from the last search pattern.
:only
The :only command closes every window in the current tab page except the one your cursor is in.
:%s/pattern//gn
The :%s/pattern//gn command counts how many times a pattern appears in the file without making any changes.
:g/^$/d
The :g/^$/d command deletes every blank line in the file using Vim's powerful global command.
:windo diffthis
The :windo diffthis command activates Vim's built-in diff mode across all visible windows, highlighting the differences between them.
:cfdo %s/old/new/g | update
The :cfdo %s/old/new/g update command performs a search and replace across every file in the quickfix list and saves each one.
:%s/old/new/g
The :%s/old/new/g command replaces all occurrences of old with new across every line in the file.
:set number!
The :set number! command toggles line numbers on or off.
:g/pattern/d
The :g/pattern/d command deletes every line in the file that matches the given pattern.