" myscripts.vim - personal vim syntax scripts support file " Steve Kinzler, steve@kinzler.com, Nov 98/May 00/Nov 01 " https://kinzler.com/me/home.html#vi " Note: "syntax clear"s added with version 6.0 to fix syntax coloring loss " on return to a file requiring one of these rules. if getline(1) =~ '^[0-9][,0-9]*[acd][,0-9]*[0-9]$' && getline(2) =~ '^[<>]' syntax clear source $VIMRUNTIME/syntax/diff.vim elseif getline(1) =~ '^<[Hh][Tt][Mm][Ll]' || getline(1) =~ 'text/html$' syntax clear source $VIMRUNTIME/syntax/html.vim elseif getline(1) =~ '^From .* [12][90][0-9][0-9]$' || getline(1) =~ '^\(From\|To\|Newsgroups\|Subject\|Received\): ' syntax clear source $VIMRUNTIME/syntax/mail.vim elseif getline(1) =~ '^<%args>' || getline(1) =~ '^<%perl>' source ~/etc/vim/syntax/mason.vim elseif getline(1) =~ '^=== [1-9][0-9]* =' || getline(1) =~ '^--- Q' || getline(3) =~ '^Selected-By:' source ~/etc/vim/syntax/oracularities.vim elseif getline(1) =~ '^'.comment.' ' source ~/etc/vim/syntax/comment.vim endif