Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

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
2  
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 –  bdowning Jun 26 '12 at 10:58
1  
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
add comment

1 Answer 1

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
add comment

Your Answer

 
discard

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.