With Vim, I want to highlight only the first match of an expression.
For instance, in the following text I want to highlight only the first a :
bdjh abc olkd abc abc
How can I realize this ?
Highlight When Cells Do Not Equal Select the range you want to apply formatting to. In the Ribbon, select Home > Conditional Formatting > New Rule.
You can make it explicit
/^.\{-}\zsa
This does:
^
(match start of line).\{-}
(match as few characters as possible)\zs
(start of match)a
(your pattern)If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With