# Guide on how to use Vim or Emacs with UE5 on Linux

**URL:** <https://forums.unrealengine.com/t/guide-on-how-to-use-vim-or-emacs-with-ue5-on-linux/694398>\
**Category:** Getting Started & Setup\
**Tags:** source-code, Linux, unreal-engine, UE5-0, UE5-1\
**Created:** [November 19, 2022, 2:07pm UTC](https://forums.unrealengine.com/t/guide-on-how-to-use-vim-or-emacs-with-ue5-on-linux/694398 "2022-11-19T14:07:00Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![julkip](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@julkip](https://forums.unrealengine.com/u/julkip)\
**Post date:** [November 19, 2022, 2:07pm UTC](https://forums.unrealengine.com/t/guide-on-how-to-use-vim-or-emacs-with-ue5-on-linux/694398/1 "2022-11-19T14:07:00Z")

</div>

I recently did a litte write-up on how to get UE5 to work with Vim or Emacs (or any other not officially supported editor/IDE), including code completion and syntax checking via LSP. I hope this is useful to someone here.

> **[Unreal Engine 5 with Vim or Emacs on Linux](https://neunerdhausen.de/posts/unreal-engine-5-with-vim/)**
>
> Preface The aim of this document is to give a comprehensive guide on how to set up for game development using Unreal Engine 5 with Vim or Emacs (or any other text editor/IDE that is not officially supported).
> This guide makes some assumptions:
> You...

If anyone has any suggestions for some improvements, I’m all ears.

---

<div class="post-metadata">

**Author:** ![GonnaCryM](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@GonnaCryM](https://forums.unrealengine.com/u/GonnaCryM)\
**Post date:** [July 18, 2024, 8:38pm UTC](https://forums.unrealengine.com/t/guide-on-how-to-use-vim-or-emacs-with-ue5-on-linux/694398/2 "2024-07-18T20:38:48Z")

</div>

Hello, i use neovim on arch and article don’t help me  
Clangd didn’t index any file with compile\_commands from “ue gen” on version 5.2 - 5.4.1

I solved that problem by using command below:

Let’s assume that unreal engine is installed on path - /opt/unreal-engine

Then by using command

```auto
/opt/unreal-engine/Engine/Build/BatchFiles/Linux/Build.sh -mode=GenerateClangDatabase -project={PATH_TO_YOUR_UPROJECT_FILE} -game -engine {YourProject}Editor Linux Development

```

You can get compile\_commands at path /opt/unreal-engine/compile\_commands.json

This compile\_commands works out of the box, there is no need to add flags c++20 and others (in my case).

For newbies: clangd tries to find compile\_commands.json going from your project directory to root, if compile\_commands will be in /opt/unreal-engine/compile\_commands.json, clangd won’t find it.

You need to directly specify dirs where clangd will find compile\_commands or make a symbolic link from your project dir → /opt/unreal-engine/compile\_commands.json (in my case)

UPD:  
ue build generates same compile\_commands as command:  
`/opt/unreal-engine/Engine/Build/BatchFiles/Linux/Build.sh ...`
