{"id":13441646,"url":"https://github.com/ddnet/ddnet","last_synced_at":"2025-03-20T12:32:07.486Z","repository":{"id":19572246,"uuid":"22821674","full_name":"ddnet/ddnet","owner":"ddnet","description":"DDraceNetwork, a free cooperative platformer game","archived":false,"fork":false,"pushed_at":"2024-10-29T21:43:12.000Z","size":364086,"stargazers_count":582,"open_issues_count":733,"forks_count":413,"subscribers_count":29,"default_branch":"master","last_synced_at":"2024-10-29T23:47:49.273Z","etag":null,"topics":["2d-game","ddnet","game","hacktoberfest","linux","macos","open-source-game","opengl","platformer","teeworlds","vulkan","windows"],"latest_commit_sha":null,"homepage":"https://ddnet.org","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ddnet.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"license.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2014-08-11T00:03:57.000Z","updated_at":"2024-10-29T21:43:16.000Z","dependencies_parsed_at":"2024-11-06T08:29:35.347Z","dependency_job_id":null,"html_url":"https://github.com/ddnet/ddnet","commit_stats":null,"previous_names":[],"tags_count":439,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ddnet%2Fddnet","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ddnet%2Fddnet/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ddnet%2Fddnet/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ddnet%2Fddnet/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ddnet","download_url":"https://codeload.github.com/ddnet/ddnet/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244611319,"owners_count":20481174,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["2d-game","ddnet","game","hacktoberfest","linux","macos","open-source-game","opengl","platformer","teeworlds","vulkan","windows"],"created_at":"2024-07-31T03:01:36.474Z","updated_at":"2025-03-20T12:32:07.473Z","avatar_url":"https://github.com/ddnet.png","language":"C++","readme":"[![DDraceNetwork](https://ddnet.org/ddnet-small.png)](https://ddnet.org) [![](https://github.com/ddnet/ddnet/workflows/Build/badge.svg)](https://github.com/ddnet/ddnet/actions?query=workflow%3ABuild+event%3Apush+branch%3Amaster) [![](https://codecov.io/gh/ddnet/ddnet/branch/master/graph/badge.svg)](https://codecov.io/gh/ddnet/ddnet/branch/master)\n\nOur own flavor of DDRace, a Teeworlds mod. See the [website](https://ddnet.org) for more information.\n\nDevelopment discussions happen on #ddnet on Quakenet ([Webchat](http://webchat.quakenet.org/?channels=ddnet\u0026uio=d4)) or on [Discord in the developer channel](https://discord.gg/xsEd9xu).\n\nYou can get binary releases on the [DDNet website](https://ddnet.org/downloads/), find it on [Steam](https://store.steampowered.com/app/412220/DDraceNetwork/) or [install from repository](#installation-from-repository).\n\n- [Code Browser](https://ddnet.org/codebrowser/DDNet/)\n- [Source Code Documentation](https://codedoc.ddnet.org/) (very incomplete, only a few items are documented)\n- [Contributing Guide](CONTRIBUTING.md)\n\nIf you want to learn about the source code, you can check the [Development](https://wiki.ddnet.org/wiki/Development) article on the wiki.\n\nCloning\n-------\n\nTo clone this repository with full history and external libraries (~350 MB):\n\n    git clone --recursive https://github.com/ddnet/ddnet\n\nTo clone this repository with full history when you have the necessary libraries on your system already (~220 MB):\n\n    git clone https://github.com/ddnet/ddnet\n\nTo clone this repository with history since we moved the libraries to https://github.com/ddnet/ddnet-libs (~40 MB):\n\n    git clone --shallow-exclude=included-libs https://github.com/ddnet/ddnet\n\nTo clone the libraries if you have previously cloned DDNet without them, or if you require the ddnet-libs history instead of a shallow clone:\n\n    git submodule update --init --recursive\n\nDependencies on Linux / macOS\n-----------------------------\n\nYou can install the required libraries on your system, `touch CMakeLists.txt` and CMake will use the system-wide libraries by default. You can install all required dependencies and CMake on Debian or Ubuntu like this:\n\n    sudo apt install build-essential cargo cmake git glslang-tools google-mock libavcodec-extra libavdevice-dev libavfilter-dev libavformat-dev libavutil-dev libcurl4-openssl-dev libfreetype6-dev libglew-dev libnotify-dev libogg-dev libopus-dev libopusfile-dev libpng-dev libsdl2-dev libsqlite3-dev libssl-dev libvulkan-dev libwavpack-dev libx264-dev python3 rustc spirv-tools\n\nOn older distributions like Ubuntu 18.04 don't install `google-mock`, but instead set `-DDOWNLOAD_GTEST=ON` when building to get a more recent gtest/gmock version.\n\nOn older distributions `rustc` version might be too old, to get an up-to-date Rust compiler you can use [rustup](https://rustup.rs/) with stable channel instead or try the `rustc-mozilla` package.\n\nOr on CentOS, RedHat and AlmaLinux like this:\n\n    sudo yum install cargo cmake ffmpeg-devel freetype-devel gcc gcc-c++ git glew-devel glslang gmock-devel gtest-devel libcurl-devel libnotify-devel libogg-devel libpng-devel libx264-devel make openssl-devel opus-devel opusfile-devel python2 rust SDL2-devel spirv-tools sqlite-devel vulkan-devel wavpack-devel\n\nOr on Fedora like this:\n\n    sudo dnf install cargo cmake ffmpeg-devel freetype-devel gcc gcc-c++ git glew-devel glslang gmock-devel gtest-devel libcurl-devel libnotify-devel libogg-devel libpng-devel make openssl-devel opus-devel opusfile-devel python2 SDL2-devel spirv-tools sqlite-devel vulkan-devel wavpack-devel x264-devel\n\nOr on Arch Linux like this:\n\n    sudo pacman -S --needed base-devel cmake curl ffmpeg freetype2 git glew glslang gmock libnotify libpng opusfile python rust sdl2 spirv-tools sqlite vulkan-headers vulkan-icd-loader wavpack x264\n\nOr on Gentoo like this:\n\n    emerge --ask dev-db/sqlite dev-lang/rust-bin dev-libs/glib dev-libs/openssl dev-util/glslang dev-util/spirv-headers dev-util/spirv-tools media-libs/freetype media-libs/glew media-libs/libglvnd media-libs/libogg media-libs/libpng media-libs/libsdl2 media-libs/libsdl2[vulkan] media-libs/opus media-libs/opusfile media-libs/pnglite media-libs/vulkan-loader[layers] media-sound/wavpack media-video/ffmpeg net-misc/curl x11-libs/gdk-pixbuf x11-libs/libnotify\n\nOn macOS you can use [homebrew](https://brew.sh/) to install build dependencies like this:\n\n    brew install cmake ffmpeg freetype glew glslang googletest libpng molten-vk opusfile rust SDL2 spirv-tools vulkan-headers wavpack x264\n\nIf you don't want to use the system libraries, you can pass the `-DPREFER_BUNDLED_LIBS=ON` parameter to cmake.\n\nBuilding on Linux and macOS\n---------------------------\n\nTo compile DDNet yourself, execute the following commands in the source root:\n\n    cmake -Bbuild\n    cmake --build build\n\nDDNet requires additional libraries, some of which are bundled for the most common platforms (Windows, Mac, Linux, all x86 and x86\\_64) for convenience and the official builds. The bundled libraries for official builds are now in the ddnet-libs submodule. Note that when you build and develop locally, you should ideally use your system's package manager to install the dependencies, instead of relying on ddnet-libs submodule, which does not contain all dependencies anyway (e.g. openssl, vulkan). See the previous section for how to get the dependencies. Alternatively see the following build arguments for how to disable some features and their dependencies (`-DVULKAN=OFF` won't require Vulkan for example).\n\nThe following is a non-exhaustive list of build arguments that can be passed to the `cmake` command-line tool in order to enable or disable options in build time:\n\n* **-DCMAKE_BUILD_TYPE=[Release|Debug|RelWithDebInfo|MinSizeRel]** \u003cbr\u003e\n  An optional CMake variable for setting the build type. If not set, defaults to \"Release\" if `-DDEV=ON` is **not** used, and \"Debug\" if `-DDEV=ON` is used. See `CMAKE_BUILD_TYPE` in CMake Documentation for more information.\n\n* **-DPREFER_BUNDLED_LIBS=[ON|OFF]** \u003cbr\u003e\n  Whether to prefer bundled libraries over system libraries. Setting to ON will make DDNet use third party libraries available in the `ddnet-libs` folder, which is the git-submodule target of the [ddnet-libs](https://github.com/ddnet/ddnet-libs) repository mentioned above -- Useful if you do not have those libraries installed and want to avoid building them. If set to OFF, will only use bundled libraries when system libraries are not found. Default value is OFF.\n\n* **-DWEBSOCKETS=[ON|OFF]** \u003cbr\u003e\n  Whether to enable WebSocket support for server. Setting to ON requires the `libwebsockets-dev` library installed. Default value is OFF.\n\n* **-DMYSQL=[ON|OFF]** \u003cbr\u003e\n  Whether to enable MySQL/MariaDB support for server. Requires at least MySQL 8.0 or MariaDB 10.2. Setting to ON requires the `libmariadbclient-dev` library installed, which are also provided as bundled libraries for the common platforms. Default value is OFF.\n\n  Note that the bundled MySQL libraries might not work properly on your system. If you run into connection problems with the MySQL server, for example that it connects as root while you chose another user, make sure to install your system libraries for the MySQL client. Make sure that the CMake configuration summary says that it found MySQL libs that were not bundled (no \"using bundled libs\").\n\n* **-DTEST_MYSQL=[ON|OFF]** \u003cbr\u003e\n  Whether to test MySQL/MariaDB support in GTest based tests. Default value is OFF.\n\n  Note that this requires a running MySQL/MariaDB database on localhost with this setup:\n\n```\nCREATE DATABASE ddnet;\nCREATE USER 'ddnet'@'localhost' IDENTIFIED BY 'thebestpassword';\nGRANT ALL PRIVILEGES ON ddnet.* TO 'ddnet'@'localhost';\nFLUSH PRIVILEGES;\n```\n\n* **-DAUTOUPDATE=[ON|OFF]** \u003cbr\u003e\n  Whether to enable the autoupdater. Packagers may want to disable this for their packages. Default value is ON for Windows and Linux.\n\n* **-DCLIENT=[ON|OFF]** \u003cbr\u003e\n  Whether to enable client compilation. If set to OFF, DDNet will not depend on Curl, Freetype, Ogg, Opus, Opusfile, and SDL2. Default value is ON.\n\n* **-DVIDEORECORDER=[ON|OFF]** \u003cbr\u003e\n  Whether to add video recording support using FFmpeg to the client. Default value is ON.\n\n* **-DDOWNLOAD_GTEST=[ON|OFF]** \u003cbr\u003e\n  Whether to download and compile GTest. Useful if GTest is not installed and, for Linux users, there is no suitable package providing it. Default value is OFF.\n\n* **-DDEV=[ON|OFF]** \u003cbr\u003e\n  Whether to optimize for development, speeding up the compilation process a little. If enabled, don't generate stuff necessary for packaging. Setting to ON will set CMAKE\\_BUILD\\_TYPE to Debug by default. Default value is OFF.\n\n* **-DUPNP=[ON|OFF]** \u003cbr\u003e\n  Whether to enable UPnP support for the server.\n  You need to install `libminiupnpc-dev` on Debian, `miniupnpc` on Arch Linux.\n  Default value is OFF.\n\n* **-DVULKAN=[ON|OFF]** \u003cbr\u003e\n  Whether to enable the vulkan backend.\n  On Windows you need to install the Vulkan SDK and set the `VULKAN_SDK` environment flag accordingly.\n  Default value is ON for Windows x86\\_64 and Linux, and OFF for Windows x86 and macOS.\n\n* **-GNinja** \u003cbr\u003e\n  Use the Ninja build system instead of Make. This automatically parallelizes the build and is generally faster. Compile with `ninja` instead of `make`. Install Ninja with `sudo apt install ninja-build` on Debian, `sudo pacman -S --needed ninja` on Arch Linux.\n\n* **-DCMAKE_CXX_LINK_FLAGS=[FLAGS]** \u003cbr\u003e\n  Custom flags to set for compiler when linking.\n\n* **-DEXCEPTION_HANDLING=[ON|OFF]** \u003cbr\u003e\n  Enable exception handling (only works with Windows as of now, uses DrMingw there). Default value is OFF.\n\n* **-DIPO=[ON|OFF]** \u003cbr\u003e\n  Enable interprocedural optimizations, also known as Link Time Optimization (LTO). Default value is OFF.\n\n* **-DFUSE_LD=[OFF|LINKER]** \u003cbr\u003e\n  Linker to use. Default value is OFF to try mold, lld, gold.\n\n* **-DSECURITY_COMPILER_FLAGS=[ON|OFF]** \u003cbr\u003e\n  Whether to set security-relevant compiler flags like `-D_FORTIFY_SOURCE=2` and `-fstack-protector-all`. Default Value is ON.\n\nRunning tests (Debian/Ubuntu)\n-----------------------------\n\nIn order to run the tests, you need to install the following library `libgtest-dev`.\n\nThis library isn't compiled, so you have to do it:\n```bash\nsudo apt install libgtest-dev\ncd /usr/src/gtest\nsudo cmake CMakeLists.txt\nsudo make\n\n# copy or symlink libgtest.a and libgtest_main.a to your /usr/lib folder\nsudo cp lib/*.a /usr/lib\n```\n\nTo run the tests you must target `run_tests` with make:\n`make run_tests`\n\nCode formatting\n---------------\nWe use clang-format 10 to format the C++ code of this project. Execute `scripts/fix_style.py` after changing the code to ensure code is formatted properly, a GitHub central style checker will do the same and prevent your change from being submitted.\n\nOn Arch Linux you can install clang-format 10 using the [clang-format-static-bin AUR package](https://aur.archlinux.org/packages/clang-format-static-bin/) with [yay](https://github.com/Jguer/yay#Binary):\n```bash\nyay -S clang-format-static-bin\n```\n\nOr on macOS you can install clang-format 10 using a [homebrew tap](https://github.com/r-lib/homebrew-taps):\n```bash\nbrew install r-lib/taps/clang-format@10\nsudo ln -s /opt/homebrew/Cellar/clang-format@10/10.0.1/bin/clang-format /opt/homebrew/bin/clang-format-10\n```\n\nUsing AddressSanitizer + UndefinedBehaviourSanitizer or Valgrind's Memcheck\n---------------------------------------------------------------------------\nASan+UBSan and Memcheck are useful to find code problems more easily. Please use them to test your changes if you can.\n\nFor ASan+UBSan compile with:\n```bash\nCC=clang CXX=clang++ CXXFLAGS=\"-fsanitize=address,undefined -fsanitize-recover=address,undefined -fno-omit-frame-pointer\" CFLAGS=\"-fsanitize=address,undefined -fsanitize-recover=address,undefined -fno-omit-frame-pointer\" cmake -DCMAKE_BUILD_TYPE=Debug .\nmake\n```\nand run with:\n```bash\nUBSAN_OPTIONS=suppressions=./ubsan.supp:log_path=./SAN:print_stacktrace=1:halt_on_errors=0 ASAN_OPTIONS=log_path=./SAN:print_stacktrace=1:check_initialization_order=1:detect_leaks=1:halt_on_errors=0 LSAN_OPTIONS=suppressions=./lsan.supp ./DDNet\n```\n\nCheck the SAN.\\* files afterwards. This finds more problems than memcheck, runs faster, but requires a modern GCC/Clang compiler.\n\nFor valgrind's memcheck compile a normal Debug build and run with: `valgrind --tool=memcheck ./DDNet`\nExpect a large slow down.\n\nBuilding on Windows with the Visual Studio IDE\n--------------------------------------\n\nDownload and install some version of [Microsoft Visual Studio](https://www.visualstudio.com/) (At the time of writing, MSVS Community 2022) with **C++ support**.\n\nYou'll have to install both [Python 3](https://www.python.org/downloads/) and [Rust](https://rustup.rs/) as well.\n\nMake sure the MSVC build tools, C++ CMake-Tools and the latest Windows SDK version appropriate to your windows version are selected in the installer.\n\nNow open up your Project folder, Visual Studio should automatically detect and configure your project using CMake.\n\nOn your tools hotbar next to the triangular \"Run\" Button, you can now select what you want to start (e.g game-client or game-server) and build it.\n\nBuilding on Windows with standalone MSVC build tools \n--------------------------------------\n\nFirst off you will need to install the MSVC [Build Tools](https://visualstudio.microsoft.com/visual-cpp-build-tools/), [Python 3](https://www.python.org/downloads/) as well as [Rust](https://www.rust-lang.org/tools/install).\n\nTo compile and build DDNet on Windows, use your IDE of choice either with a CMake integration (e.g Visual Studio Code), or by ~~**deprecated**~~ using the CMake GUI.\n\nConfigure CMake to use the MSVC Build Tools appropriate to your System by your IDE's instructions.\n\nIf you're using Visual Studio Code, you can use the [CMake Tools](https://marketplace.visualstudio.com/items?itemName=ms-vscode.cmake-tools) extension to configure and build the project.\n\nYou can then open the project folder in VSC and press `Ctrl+Shift+P` to open the command palette, then search for `CMake: Configure`\n\nThis will open up a prompt for you to select a kit, select your `Visual Studio` version and save it. You can now use the GUI (bottom left) to compile and build your project.\n\n\nCross-compiling on Linux to Windows x86/x86\\_64\n-----------------------------------------------\n\nInstall MinGW cross-compilers of the form `i686-w64-mingw32-gcc` (32 bit) or\n`x86_64-w64-mingw32-gcc` (64 bit). This is probably the hard part. ;)\n\nThen add `-DCMAKE_TOOLCHAIN_FILE=../cmake/toolchains/mingw64.toolchain` to the\n**initial** CMake command line.\n\nCross-compiling on Linux to WebAssembly via Emscripten\n--------------------------------------------------------\n\nInstall Emscripten cross-compilers (e.g. `sudo apt install emscripten`) on a modern linux distro.\n\nIf you need to compile the ddnet-libs for WebAssembly, simply call\n\n```bash\n# \u003cdirectory to build in\u003e should be a directory outside of the project's source directory\nscripts/compile_libs/gen_libs.sh \u003cdirectory to build in\u003e webasm\n```\n\nfrom the project's source directory. It will automatically create a directory called `ddnet-libs`.\nYou can then manually merge this directory with the one in the ddnet source directory.\n\nThen run `emcmake cmake .. -DVIDEORECORDER=OFF -DVULKAN=OFF -DSERVER=OFF -DTOOLS=OFF -DPREFER_BUNDLED_LIBS=ON` in your build directory.\n\nTo test the compiled code locally, just use `emrun --browser firefox DDNet.html`\n\nTo host the compiled .html file copy all `.data`, `.html`, `.js`, `.wasm` files to the web server. (see /other/emscripten/minimal.html for a minimal html example)\n\nThen enable cross origin policies. Example for apache2 on debian based distros:\n```bash\nsudo a2enmod header\n\n# edit the apache2 config to allow .htaccess files\nsudo nano /etc/apache2/apache2.conf\n\n# set AllowOverride to All for your directory\n# then create a .htaccess file on the web server (where the .html is)\n# and add these lines\nHeader add Cross-Origin-Embedder-Policy \"require-corp\"\nHeader add Cross-Origin-Opener-Policy \"same-origin\"\n\n# now restart apache2\nsudo service apache2 restart\n```\n\nCross-compiling on Linux to macOS\n---------------------------------\n\nInstall [osxcross](https://github.com/tpoechtrager/osxcross), then add\n`-DCMAKE_TOOLCHAIN_FILE=../cmake/toolchains/darwin.toolchain` and\n`-DCMAKE_OSX_SYSROOT=/path/to/osxcross/target/SDK/MacOSX10.11.sdk/` to the\n**initial** CMake command line.\n\nInstall `dmg` and `hfsplus` from\n[libdmg-hfsplus](https://github.com/mozilla/libdmg-hfsplus) and `newfs_hfs`\nfrom\n[diskdev\\_cmds](http://pkgs.fedoraproject.org/repo/pkgs/hfsplus-tools/diskdev_cmds-540.1.linux3.tar.gz/0435afc389b919027b69616ad1b05709/diskdev_cmds-540.1.linux3.tar.gz)\nto unlock the `package_dmg` target that outputs a macOS disk image.\n\nImporting the official DDNet Database\n-------------------------------------\n\n```bash\n$ wget https://ddnet.org/stats/ddnet-sql.zip\n$ unzip ddnet-sql.zip\n$ yaourt -S mariadb mysql-connector-c++\n$ mysql_install_db --user=mysql --basedir=/usr --datadir=/var/lib/mysql\n$ systemctl start mariadb\n$ mysqladmin -u root password 'PW'\n$ mysql -u root -p'PW'\nMariaDB [(none)]\u003e create database teeworlds; create user 'teeworlds'@'localhost' identified by 'PW2'; grant all privileges on teeworlds.* to 'teeworlds'@'localhost'; flush privileges;\n# this takes a while, you can remove the KEYs in record_race.sql to trade performance in queries\n$ mysql -u teeworlds -p'PW2' teeworlds \u003c ddnet-sql/record_*.sql\n\n$ cat mine.cfg\nsv_use_sql 1\nadd_sqlserver r teeworlds record teeworlds \"PW2\" \"localhost\" \"3306\"\nadd_sqlserver w teeworlds record teeworlds \"PW2\" \"localhost\" \"3306\"\n\n$ cmake -Bbuild -DMYSQL=ON\n$ cmake --build build --target DDNet-Server\n$ build/DDNet-Server -f mine.cfg\n```\n\n\u003ca href=\"https://repology.org/metapackage/ddnet/versions\"\u003e\n    \u003cimg src=\"https://repology.org/badge/vertical-allrepos/ddnet.svg?header=\" alt=\"Packaging status\" align=\"right\"\u003e\n\u003c/a\u003e\n\nInstallation from Repository\n----------------------------\n\nDebian/Ubuntu\n\n```bash\n$ apt-get install ddnet\n\n```\n\nMacOS\n\n```bash\n$ brew install --cask ddnet\n```\n\nFedora\n\n```bash\n$ dnf install ddnet\n```\n\nArch Linux\n\n```bash\n$ yay -S ddnet\n```\n\nFreeBSD\n\n```bash\n$ pkg install DDNet\n```\n\nWindows (Scoop)\n```\nscoop bucket add games\nscoop install games/ddnet\n```\n\nBenchmarking\n------------\n\nDDNet is available in the [Phoronix Test Suite](https://openbenchmarking.org/test/pts/ddnet). If you have PTS installed you can easily benchmark DDNet on your own system like this:\n\n```bash\n$ phoronix-test-suite benchmark ddnet\n```\n\nBetter Git Blame\n----------------\n\nFirst, use a better tool than `git blame` itself, e.g. [`tig`](https://jonas.github.io/tig/). There's probably a good UI for Windows, too. Alternatively, use the GitHub UI, click \"Blame\" in any file view.\n\nFor `tig`, use `tig blame path/to/file.cpp` to open the blame view, you can navigate with arrow keys or kj, press comma to go to the previous revision of the current line, q to quit.\n\nOnly then you could also set up git to ignore specific formatting revisions:\n```bash\ngit config blame.ignoreRevsFile formatting-revs.txt\n```\n\n(Neo)Vim Syntax Highlighting for config files\n----------------------------------------\nCopy the file detection and syntax files to your vim config folder:\n\n```bash\n# vim\ncp -R other/vim/* ~/.vim/\n\n# neovim\ncp -R other/vim/* ~/.config/nvim/\n```\n","funding_links":[],"categories":["C++","Native"],"sub_categories":["Platform"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fddnet%2Fddnet","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fddnet%2Fddnet","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fddnet%2Fddnet/lists"}