Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

In this question, Gilles answered

Yet another possibility is to run tail -f in an Emacs shell buffer and use Emacs's syntax coloring abilities.

Because I'm a vim user, I'd like to do this with vim, not emacs.
Does vim have this feature?

share|improve this question
Vim is just a text editor, unlike Emacs... There is, however, a tail plugin for Vim that may be of use. – jasonwryan Jun 25 '12 at 2:09
There is also the vimpager plug-in that might do the trick – bsd Jun 26 '12 at 10:58
does it have to be a text editor? If you just need to color text, you can use Clide – golimar Jun 27 '12 at 14:44
Additionally, there is TailBundle for vim. – jofel Jul 2 '12 at 14:23
There is a similar question here. The solutions explains the use of multitail and how to configure it, maybe it can be useful. – logoff Jul 27 '12 at 12:53

You can write a multithread plugin to change the buffer(s) in real time in Python or any other script that Vim supports and has threads.

But this only works in terminal as far as I know. At least in X11, the GUI version will crash if the GUI is modified by another thread.

If you accept other programs, grc and ccze are able to colorize streams.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.