sponsor Vim development Vim logo Vim Book Ad

Syntax Highlighting for db2diag.log : Syntax plug in for IBM DB2 diagnostic log file

 script karma  Rating 10/7, Downloaded by 637  Comments, bugs, improvements  Vim wiki

created by
Jacobo de Vera
 
script type
syntax
 
description
This syntax plug-in highlights the main fields in a db2diag.log file.
 
install details
1. Copy the db2diag.log.vim file into the  ~/.vim/syntax/ directory.
2. Add this to your ~/.vimrc file:

    syntax on

3. Create a  ~/.vim/ftdetect/db2diaglog.vim file with this line in it to make Vim apply the syntax automatically, based of the file name:

    autocmd BufNewFile,BufRead db2diag.log setfiletype db2diaglog

    * Alternatively, you can skip this step and specify the file type every time you need the syntax by running this command:

    :set filetype=db2diaglog

4. Open your db2diag.log file.  You should see the colours!
 

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
db2diaglog.vim 1.0.0 2009-07-30 6.0 Jacobo de Vera Initial upload
ip used for rating: 3.137.180.32

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