sponsor Vim development Vim logo Vim Book Ad

jbosslog : Syntax file for viewing Jboss Logs

 script karma  Rating 0/0, Downloaded by 487  Comments, bugs, improvements  Vim wiki

created by
bala dutt
 
script type
syntax
 
description
if you wanted exceptions/errors to stand out as red words, date to be in a different color so that it may be ignored ... here is the script that will do that for you.
 
install details
If you are on windows and you use cygwin, here are some more things that you could add to your ~\_vimrc

filetype plugin on
"set cfu=VjdeCompletionFun
"let g:vjde_lib_path="lib/j2ee.jar:lib/struts.jar:build/classes"
set shell=D:/tools/cygwin/bin/bash
set shellcmdflag=--login\ -c
set shellxquote=\"

fu! Log()
    :e C:\whp-jboss-5.3.1.2\server\default\log\server.log
    :se autoread
endfunction

fu! Field(n)
    echo a:n
    let str1="1,'a! awk '{print $".a:n." }'"
    echo str1
    :execute str1
endfunction

fu! NotField(n)
    echo a:n
    let str1="1,'a! awk '{$".a:n."=\"\"\"\"; print; }'"
    echo str1
    :execute str1
endfunction

fu! MessageOnly()
:1,$s/\([^,]*\), \(.*$\)/\2 \1/

endfunction

augroup filetypedetect
  au! BufRead,BufNewFile server.log set filetype=jbosslog
augroup END

syntax on
 

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
jbosslog.vim 1.0 2010-12-08 7.2 bala dutt Initial upload
ip used for rating: 3.144.96.159

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