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 youGuys,
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. :-)