clean up "after" files

Sat, 16 Mar 2019 03:44:47 -0500

author
Meredith Howard <mhoward@roomag.org>
date
Sat, 16 Mar 2019 03:44:47 -0500
changeset 744
7a5823050d74
parent 743
76c4c96d8b9f
child 745
dd23da749523

clean up "after" files

.vim/after/ftplugin/perl.vim file | annotate | diff | comparison | revisions
.vim/after/syntax/perl/contrib.vim file | annotate | diff | comparison | revisions
.vim/after/syntax/perl/custom.vim file | annotate | diff | comparison | revisions
.vim/after/syntax/perl/perl-contrib.vim file | annotate | diff | comparison | revisions
.vim/after/syntax/sh/custom.vim file | annotate | diff | comparison | revisions
.vim/after/syntax/sh/pod.vim file | annotate | diff | comparison | revisions
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
rename from .vim/after/syntax/perl/perl-contrib.vim
rename to .vim/after/syntax/perl/contrib.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 +\<method\>\(\_s*=>\)\@!\_s*+ nextgroup=perlSubName
 syn match perlFunction +\<fun\>\(\_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
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 <F10> :echo "hi<" . synIDattr(synID(line("."),col("."),1),"name") . '> trans<' . synIDattr(synID(line("."),col("."),0),"name") . "> lo<" . synIDattr(synIDtrans(synID(line("."),col("."),1)),"name") . ">"<CR>

mercurial