sponsor Vim development Vim logo Vim Book Ad

tailtab.vim : View log files getting updated automagically

 script karma  Rating 5/4, Downloaded by 2002  Comments, bugs, improvements  Vim wiki

created by
Girish Venkatachalam
 
script type
utility
 
description
This is a plugin that lets you view multiple log files or any files of interest that are modified externally. The files are opened in read
only mode.

:TailView /tmp/foo /var/log/bar ...

will open as many new tabs as files and you can update the file from disk using the
<Ctrl-K> keypress in normal mode. Also when you swich tabs using the gt command the file gets updated from disk automatically.

Of course you can use the TAB key to complete file names.

Normal vim usage is not affected in any way. Only files opened with the TailView command are in read only mode and updated from disk
automatically when you enter that tab
 
install details
Normal instructions. Just drop the script into ~/.vim/plugin directory
and restart vim!
 

rate this script Life Changing Helpful Unfulfilling 
script versions (upload new version)

Click on the package to download.

package script version date Vim version user release notes
tailtab.vim 0.2 2006-10-25 7.0 Girish Venkatachalam Thanks to Bill McCarthy for comments.

Now, the Ctrl-K update hotkey works only for TailView buffers.
tailtab.vim 0.1 2006-10-24 7.0 Girish Venkatachalam Initial upload
ip used for rating: 18.204.214.205

If you have questions or remarks about this site, visit the vimonline development pages. Please use this site responsibly.
Questions about Vim should go to the maillist. Help Bram help Uganda.
   
Vim at Github