From dd5427baaf49f8de4355abeb6bc8c6dd14f74e25 Mon Sep 17 00:00:00 2001 From: René 'Necoro' Neumann Date: Wed, 7 Oct 2009 17:05:19 +0200 Subject: Initial check-in of files --- .vim/aftersyntax.vim | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .vim/aftersyntax.vim (limited to '.vim/aftersyntax.vim') diff --git a/.vim/aftersyntax.vim b/.vim/aftersyntax.vim new file mode 100644 index 0000000..f74003c --- /dev/null +++ b/.vim/aftersyntax.vim @@ -0,0 +1,35 @@ +" aftersyntax.vim: +" Author: Charles E. Campbell, Jr. +" Date: Jul 02, 2004 +" Version: 1 +" +" 1. Just rename this file (to something like c.vim) +" 2. Put it into .vim/after/syntax +" 3. Then any *.vim files in the subdirectory +" .vim/after/syntax/name-of-file/ +" will be sourced + +" --------------------------------------------------------------------- +" source in all files in the after/syntax/c directory +let ft = expand(":t:r") +let s:synlist= glob(expand(":h")."/".ft."/*.vim") +"call Decho("ft<".ft."> synlist<".s:synlist.">") + +while s:synlist != "" + if s:synlist =~ '\n' + let s:synfile = substitute(s:synlist,'\n.*$','','e') + let s:synlist = substitute(s:synlist,'^.\{-}\n\(.*\)$','\1','e') + else + let s:synfile = s:synlist + let s:synlist = "" + endif + +" call Decho("sourcing <".s:synfile.">") + exe "so ".s:synfile +endwhile + +" cleanup +unlet s:synlist +if exists("s:synfile") + unlet s:synfile +endif -- cgit v1.2.3-54-g00ecf