调试Vim的C ++ IDE插件 [英] Tuning C++ IDE plugin for Vim

查看:150
本文介绍了调试Vim的C ++ IDE插件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

问题是关于如何调整插件到vim。我想改变它的行为,当我推 \rc ,即我想编译文件。我想用g ++与-std:c ++ 0x选项编译。我理解我应该将全局变量g:C_CplusCompiler从默认值g ++更改为-std:c ++ 0x g ++。

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++".

更新:感谢@holygeek显示正确的命令更改vim中的全局变量:

:let g:C_CplusCompiler = g ++ -std = c ++ 0x。然而,它并不帮助编译与 \rc 和右选项 -std:c ++ 0x 。有任何想法吗?我没有找到如何在手动:(

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 :(

推荐答案

在vim set用于设置一个设置。变量使用let命令:

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"

这篇关于调试Vim的C ++ IDE插件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆