Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a C++11 syntax file for vim?

Tags:

c++

vim

c++11

In particular, the display of initialization lists is really bad:

vector<int> v({1,2,3}); 

will highlight the curly braces in red (denoting an error).

like image 475
Neil G Avatar asked Jun 04 '10 19:06

Neil G


People also ask

Where are the vim syntax files?

vim comes bundled with Vim and is available in /usr/share/vim/vim72/syntax/python. vim , if an alternative version is instead loaded from ~/. vim/syntax/python.

What is a vim syntax file?

3 years ago. Vim is a text editor for creating or modifying any text, script or configuration file and it is the advanced version of vi editor. This editor is installed by default in most of the Linux operating systems.


1 Answers

As an alternative, you can use

let c_no_curly_error=1 

in your .vimrc file so that vim doesn't tag {} as error in ().

like image 195
thrust Avatar answered Oct 11 '22 12:10

thrust