When opening a valgrind output file, the syntax highlighting was not
being automatically turned on.
I found that on scripts.vim it's checking for 'valgrind' on the first
line, but my version of valgrind (3.2.1 ) prints 'Memcheck' instead.
So I fixed it adding the second elseif bellow:

 " Valgrind
 elseif s:line1 =~ '^==\d\+== valgrind'
   set ft=valgrind
 elseif s:line1 =~ '^==\d\+== Memcheck'
   set ft=valgrind

Maybe this should be included on Vim distribution?

--
Rodolfo Borges

Reply via email to