# Unreal Engine 4 in Vim with YouCompleteMe autocompleter?

**URL:** <https://forums.unrealengine.com/t/unreal-engine-4-in-vim-with-youcompleteme-autocompleter/435725>\
**Category:** C++\
**Tags:** clang, unreal-engine, question, CPP\
**Created:** [October 16, 2018, 10:20am UTC](https://forums.unrealengine.com/t/unreal-engine-4-in-vim-with-youcompleteme-autocompleter/435725 "2018-10-16T10:20:40Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![DasOhmoff](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@DasOhmoff](https://forums.unrealengine.com/u/DasOhmoff)\
**Post date:** [October 16, 2018, 10:20am UTC](https://forums.unrealengine.com/t/unreal-engine-4-in-vim-with-youcompleteme-autocompleter/435725/1 "2018-10-16T10:20:40Z")

</div>

Hi, I did not find the answer for this question online.

Is there a way to use YouCompleteMe in Vim autocompletion with Unreal Engines C++ code?  
Maybe adding exceptions to errors, or something like that?  
Alternativly I could also use another autocompletion plugin that would work with Unreal Engine.

Those are the errors that I get:

 ![grafik](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/b/4/cb44e4709f1766cd539635d6e10a330821201c3c.png)

On Line 7: File not found.  
On Line 10: C++ requires a type specifier for all declerations.

YcmDebugInfo: ['Config' | TextUploader.com](http://txt.do/dnhzk)

My .ycm\_extra\_conf: ['Config' | TextUploader.com](http://txt.do/dnhz1)

---

<div class="post-metadata">

**Author:** ![DasOhmoff](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@DasOhmoff](https://forums.unrealengine.com/u/DasOhmoff)\
**Post date:** [October 29, 2018, 6:17am UTC](https://forums.unrealengine.com/t/unreal-engine-4-in-vim-with-youcompleteme-autocompleter/435725/2 "2018-10-29T06:17:38Z")

</div>

I was able to fix those problems and make it work with YouCompleteMe.  
If someone is interested in how I made it work he can ask me anywhere and I will reply.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_b6262e06](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_b6262e06](https://forums.unrealengine.com/u/anonymous_user_b6262e06)\
**Post date:** [December 7, 2018, 9:57am UTC](https://forums.unrealengine.com/t/unreal-engine-4-in-vim-with-youcompleteme-autocompleter/435725/3 "2018-12-07T09:57:06Z")

</div>

I’m just curious how you fixed it. Did run you UHT to generate the files? Besides, do you use Linux/Mac or Windows? I’m using Linux and just trying to make ycm work correctly now. Would you mind sharing your ycm\_extra\_conf file?

---

<div class="post-metadata">

**Author:** ![DasOhmoff](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@DasOhmoff](https://forums.unrealengine.com/u/DasOhmoff)\
**Post date:** [December 13, 2018, 5:10pm UTC](https://forums.unrealengine.com/t/unreal-engine-4-in-vim-with-youcompleteme-autocompleter/435725/4 "2018-12-13T17:10:59Z")

</div>

Hi, I am using Windows as my OS.  
I would prefer to use Linux with VIM but I need Windows for school.

To be honest with you, I dont think that my config will work for you, as I myself use Windows, but anyways, here is my ycm\_extra\_conf: [Gofile - Free file sharing and storage platform](https://gofile.io/d/FsIKKo)

You will have to uncomment a lot of lines and change them depending on your own system and so on.

I forgot how I managed to get the flags, but I think I generated a clion project with unreal engine \> added this to the cmake file:

set(CMAKE\_EXPORT\_COMPILE\_COMMANDS ON)

after that I corrected the backslashes with forward slahes \> tryed to generate the project (it failed) \> and used the flags from the generated compile\_commands.json

Maybe you already know what to do, maybe you will have some questions, if so feel free to ask.
