How do I jump to the local definition of a variable in Vim?
gd
The gd command jumps to the local definition of the word under the cursor.
gd
The gd command jumps to the local definition of the word under the cursor.
: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.
:%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.
: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.
cgn
The cgn command combines the change operator with the gn motion to change the next occurrence of your last search pattern.
:%s/old/new/g
The :%s/old/new/g command replaces all occurrences of old with new across every line in the file.
:g/pattern/d
The :g/pattern/d command deletes every line in the file that matches the given pattern.