wsdjeg / SpaceVim-comments

1 stars 0 forks source link

Use Vim as a C/C++ IDE | SpaceVim #47

Open wsdjeg opened 5 years ago

wsdjeg commented 5 years ago

https://spacevim.org/use-vim-as-a-c-cpp-ide/

0xPacman commented 5 years ago

use Emacs Doom and you can do all what vim can do plus extra ..

LRDPRDX commented 5 years ago

I am using YCM plugin for vim currently. And it's very powerful. But I am interesting in this project.

vbregier commented 4 years ago

Hi,

Can you customize the command run when doing SPC l r, and if yes, how ? Not all projects compile just with the default g++ command line…

vbregier commented 4 years ago

And second question : is there a way to get the compile log into quickfix window ? So that, if compilation makes an error, I can quick jump to the line causing the error…

wsdjeg commented 4 years ago

In current version, no, you can not change the runnr command, but this feature will be implement in the future. if you want to use quickfix to save the error message, I think you can checkout the checkers layer, it use neomake by default.

MrG2333 commented 4 years ago

[SPC] l r does not seem to work I get key binding not defined

wsdjeg commented 4 years ago

@MrG2333 make sure the lang#c layer has been loaded.

404-not-find commented 4 years ago

ff

404-not-find commented 4 years ago

[REPL executable] 'igcc'

executing job failed: No such file or directory

wsdjeg commented 4 years ago

@404-not-find you need to install igcc, this is a repl command for c++ language.

shenlin-tomtom commented 4 years ago

I typed SPC l r nothing happened! Space vim told me this is undefined key binding

wsdjeg commented 3 years ago

@shenlin-tomtom, I think you do not load the lang#c layer, this key binding is definded in lang#c layer.

AspirinZJ commented 3 years ago

When I try to compile and run, I got the following error:

[Compile] ['gcc', '-o', '/tmp/vmb5B8N/1', '-std=c11', '-xc', '-', 'STDIN']
[Running] /tmp/vmb5B8N/1


:1:1: error: expected identifier or ‘(’ before ‘[’ token :1:12: warning: multi-character character constant [-Wmultichar] :1:19: warning: multi-character character constant [-Wmultichar] :1:25: warning: character constant too long for its type :1:43: warning: character constant too long for its type :1:55: warning: multi-character character constant [-Wmultichar] :1:67: warning: character constant too long for its type [Done] exited with code=1 in 0.015856 seconds The code seems to be OK. Could you please tell me how to fix this? Thank you very much!