martanne / vis

A vi-like editor based on Plan 9's structural regular expressions
Other
4.23k stars 256 forks source link

Suggestion: generic set show #884

Closed erf closed 3 years ago

erf commented 3 years ago

I was thinking we could add a generic set show [regex] [string], for e.g. in case you'd only like to highlight more than one space or some other arbitrary pattern, just put in the [regex] and a [string] replacement for the pattern.

To turn it off again, you'd write set show [regex] off.

erf commented 3 years ago

I made a plugin which does this called vis-highlight

You can type: :hi "somePattern"