# HG changeset patch # User Meredith Howard # Date 1552725887 18000 # Node ID 7a5823050d74c61456d7e15140ce30dd33df8935 # Parent 76c4c96d8b9f8ea11078c04c43c3c92d7d253292 clean up "after" files diff --git a/.vim/after/ftplugin/perl.vim b/.vim/after/ftplugin/perl.vim new file mode 100644 --- /dev/null +++ b/.vim/after/ftplugin/perl.vim @@ -0,0 +1,5 @@ +compiler perl + +if g:perl_tidy_equalprg + setlocal equalprg=perltidy\ -q +endif diff --git a/.vim/after/syntax/perl/perl-contrib.vim b/.vim/after/syntax/perl/contrib.vim rename from .vim/after/syntax/perl/perl-contrib.vim rename to .vim/after/syntax/perl/contrib.vim diff --git a/.vim/after/syntax/perl/custom.vim b/.vim/after/syntax/perl/custom.vim --- a/.vim/after/syntax/perl/custom.vim +++ b/.vim/after/syntax/perl/custom.vim @@ -1,14 +1,8 @@ -compiler perl - -setlocal iskeyword+=: - -if g:perl_tidy_equalprg - setlocal equalprg=perltidy\ -q -endif - " this keeps indents from jumping more than one level let b:indent_use_syntax = 0 +syn sync minlines=100 + " Add match for =method and =func from Pod::Weaver syn match podCommand "^=method" contained nextgroup=podCmdText contains=@NoSpell syn match podCommand "^=func" contained nextgroup=podCmdText contains=@NoSpell @@ -17,8 +11,6 @@ syn match podCommand "^=func" contained syn match perlFunction +\\(\_s*=>\)\@!\_s*+ nextgroup=perlSubName syn match perlFunction +\\(\_s*=>\)\@!\_s*+ nextgroup=perlSubName -syn sync minlines=50 - " Tweak some colors, making POD stand out less hi! def link perlPOD Comment hi! def link podCommand SpecialComment diff --git a/.vim/after/syntax/sh/custom.vim b/.vim/after/syntax/sh/pod.vim rename from .vim/after/syntax/sh/custom.vim rename to .vim/after/syntax/sh/pod.vim --- a/.vim/after/syntax/sh/custom.vim +++ b/.vim/after/syntax/sh/pod.vim @@ -1,4 +1,3 @@ - let s:current_syntax = b:current_syntax unlet b:current_syntax syn include @Pod syntax/pod.vim @@ -11,5 +10,3 @@ hi! def link shPOD Comment hi! def link podCommand SpecialComment hi! def link podCmdText Question hi! def link podFormat StorageClass - -map :echo "hi<" . synIDattr(synID(line("."),col("."),1),"name") . '> trans<' . synIDattr(synID(line("."),col("."),0),"name") . "> lo<" . synIDattr(synIDtrans(synID(line("."),col("."),1)),"name") . ">"