How do you print all lines matching a pattern?
:g/pattern/p
Use :g/pattern/p to print all matching lines.
:g/pattern/p
Use :g/pattern/p to print all matching lines.
set showmatch
Enable showmatch to briefly highlight the matching bracket when you type a closing bracket.
% with matchit plugin
The % command jumps between matching brackets by default, but with the built-in matchit plugin, it extends to match language-specific keywords like if/else/endi
vim-matchup
The vim-matchup plugin by Andy Massimino is a drop-in replacement for Vim's built-in matchit plugin that supercharges the % key to work with language-specific k
plugins #plugins #matchup #navigation #text-objects #matching