How do I search only the message part of TODO comments using match boundaries?
/\vTODO:\s*\zs.{-}\ze\s*($|#)
When TODO comments include prefixes, owners, or trailing metadata, a plain search often lands on the wrong part of the line.
/\vTODO:\s*\zs.{-}\ze\s*($|#)
When TODO comments include prefixes, owners, or trailing metadata, a plain search often lands on the wrong part of the line.
:set commentstring=//\ %s
The commentstring option controls the template Vim uses to represent commented-out lines.
[/ and ]/
Vim provides two motions for navigating C-style block comments (/ .
:set formatoptions+=cro
The formatoptions setting controls how Vim automatically formats text as you type — including comment continuation, auto-wrapping, and paragraph formatting.
qa/^#\nddq
Record a macro that finds lines starting with # and deletes them.