From 6d55a1d4cc784460f77d5bd15a058220111cc8e0 Mon Sep 17 00:00:00 2001 From: Alison Watson Date: Tue, 2 Jul 2019 17:15:44 -0400 Subject: [PATCH] vim: add better highlighting rules for polyglot/C++ --- vim/vimrc | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/vim/vimrc b/vim/vimrc index 9734a74..40ec155 100644 --- a/vim/vimrc +++ b/vim/vimrc @@ -205,6 +205,27 @@ filetype on filetype plugin on filetype indent on +" Highlighting ---------------------------------------------------------------| + +" Settings for C++ to make it more consistent with other highlighting groups, +" and better for recent standards and specs. +let g:cpp_class_scope_highlight=1 +let g:cpp_concepts_highlight=1 + +" Get rid of STL highlighting because those are NOT keywords +hi link cppSTLbool NONE +hi link cppSTLcast NONE +hi link cppSTLconstant NONE +hi link cppSTLenum NONE +hi link cppSTLexception NONE +hi link cppSTLfunction NONE +hi link cppSTLfunctional NONE +hi link cppSTLios NONE +hi link cppSTLiterator NONE +hi link cppSTLiterator_tag NONE +hi link cppSTLnamespace NONE +hi link cppSTLtype NONE + " Functions ------------------------------------------------------------------| " Automatic headers