From: Simon Ruderich Date: Thu, 2 Aug 2012 16:13:27 +0000 (+0200) Subject: vim/after/syntax: Special highlight for statement control in C and Perl. X-Git-Url: https://ruderich.org/simon/gitweb/?a=commitdiff_plain;h=c2dd4e9e2e81a703bdebba543f23792480c3ce82;p=config%2Fdotfiles.git vim/after/syntax: Special highlight for statement control in C and Perl. When my color scheme is used. --- diff --git a/vim/after/syntax/c.vim b/vim/after/syntax/c.vim new file mode 100644 index 0000000..4af58da --- /dev/null +++ b/vim/after/syntax/c.vim @@ -0,0 +1,27 @@ +" Vim syntax file +" +" Language: C +" Maintainer: Simon Ruderich +" License: GPL v3+ + +" Copyright (C) 2012 Simon Ruderich +" +" This file is free software: you can redistribute it and/or modify +" it under the terms of the GNU General Public License as published by +" the Free Software Foundation, either version 3 of the License, or +" (at your option) any later version. +" +" This file is distributed in the hope that it will be useful, +" but WITHOUT ANY WARRANTY; without even the implied warranty of +" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +" GNU General Public License for more details. +" +" You should have received a copy of the GNU General Public License +" along with this file. If not, see . + + +" Highlight statement control keywords differently when my color scheme is +" used. +if exists('g:colors_name') && g:colors_name == 'simon' + syntax keyword statementControl continue break return goto +endif diff --git a/vim/after/syntax/perl.vim b/vim/after/syntax/perl.vim new file mode 100644 index 0000000..cebf591 --- /dev/null +++ b/vim/after/syntax/perl.vim @@ -0,0 +1,27 @@ +" Vim syntax file +" +" Language: Perl +" Maintainer: Simon Ruderich +" License: GPL v3+ + +" Copyright (C) 2012 Simon Ruderich +" +" This file is free software: you can redistribute it and/or modify +" it under the terms of the GNU General Public License as published by +" the Free Software Foundation, either version 3 of the License, or +" (at your option) any later version. +" +" This file is distributed in the hope that it will be useful, +" but WITHOUT ANY WARRANTY; without even the implied warranty of +" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +" GNU General Public License for more details. +" +" You should have received a copy of the GNU General Public License +" along with this file. If not, see . + + +" Highlight statement control keywords differently when my color scheme is +" used. +if exists('g:colors_name') && g:colors_name == 'simon' + highlight link perlStatementControl statementControl +endif