Dearest friends, I believe this is the place where the smartest sys admins on earth hang around; what better place than this for me to advertise my little creation? :-)
I know what I did was trivial; please be gentle. :-) I have written a vim plugin that opens multiple log files or any file you want to monitor that is constantly changing outside of the vim instance. And the fun is it is opened in multiple tabs and updated automagically once you go to that tab using the "gt" command in normal mode. The files opened using this plugin are opened in read only mode. And the file names given can be completed using the TAB key. I have tried to explain the usage. Should you have any doubts please let me know. http://www.vim.org/scripts/script.php?script_id=1692 And the rest of your vim editing goes on as usual. Only the files opened using the :TailView command are updated while you switch tabs. And you can update the file at any time by pressing Ctrl-K. This has the benefit that you can go back and forth the whole file inside the cool comfort of vim. Think of it as less on steroids but a tad slower to load since vim reads the whole file. Hope you find it useful. One idea that crossed my mind was somehow indicating that you opened the file in TailView mode, but then I thought that it might make the code bloated and not add any real value. I shall be more than willing to add any features you think will be useful to you in your day to day work. Enjoy! :-) regards, Girish Installation instructions:- Just download the file tailtab.vim and drop it into ~/.vim/plugin directory. Then start vim and type :TailView /var/log/maillog /var/log/messages -- Having nothing nothing can he lose