[Ilugc] Log file viewing help

  • From: girishvenkatachalam@xxxxxxxxx (Girish Venkatachalam)
  • Date: Tue Oct 24 17:16:37 2006

On Mon, Oct 23, 2006 at 05:19:18PM +0530, Girish Venkatachalam wrote:

Well now the instructions are different. Yank my script to a file that you 
call say tailtab.vim or something. The name really doesnt matter.

Now, execute these steps as a normal user.

$mkdir -p ~/.vim/plugin
$cp tailtab.vim ~/.vim/plugin

Now, just fire up vim 

$vim

Inside vim, type :TailView /var/log/messages /var/log/mail.log

to view these two files in separate tabs.

But system files are usually not allowed for viewing by normal users. I leave 
it an exercise what you have to do. :-)

TailView is to be entered in : mode just like :wq .

I am sure you get the idea.

Now, you can simultaneously edit another file since this plugin opens new 
tabs. Doesn't overwrite existing ones.

Press Ctrl-R to reload the file. You can of course at any time add new log 
files for monitoring using the TailTab command.

Of course you can use the usual TAB key for filename completion. :-)
Guys, 

        Very sorry for beating a dead horse but I made it professional quality 
and uploaded it to vim.org.

        Check out!

        http://www.vim.org/scripts/script.php?script_id=1692

        Not to mention the fact that I have learnt a great deal about vim in 
the process. :-)

regards,
Girish

Other related posts: