Special text highlighting in vim

Nowadays, I understand a lot of log files, which is usually associated with tracking a specific identifier through various places in the log file. If I'm looking for an identifier, then vim highlights all occurrences, which really helps in digging, but it disappears if I look for something else.

Is there a quick way to get vim to highlight, for example, change the background or color of text matching a specific regular expression?

I assume that syntax highlighting is what I want, but it would be nice if there was a more dynamic way.

+7
vim
source share
3 answers

The Vim command is available for this : match . You can also use the matchadd () function to add an arbitrary number of matches.

+6
source share

I use the mark.vim plugin to visually label words. It allows you to simultaneously mark different words in different colors and jump to entries. In my opinion, this feature is very useful, especially for code analysis - or for navigating through log files.

mark.vim

+2
source share

I use the MultipleSearch plugin exactly for this.

0
source share

All Articles