Reputation: 25560
Question is about how to tune this plugin to vim. I want to change behavior of it when I push \rc
, i.e. I want compile the file. I want compile with g++ with -std:c++0x option. As I understand I should change global variable g:C_CplusCompiler from defaults value "g++" to "-std:c++0x g++".
Update: thanks @holygeek for showing right command to change global variable in vim:
:let g:C_CplusCompiler="g++ -std=c++0x"
. However it doesn't not help to compile with \rc
and right option -std:c++0x
. Any ideas? I have not found how to do it in manual :(
Upvotes: 1
Views: 589
Reputation: 16185
In vim set is used to set a setting. To set a variable use the let command:
:let g:C_CplusCompiler="g++ -std:c++0x"
Upvotes: 2