1
0
Fork 0
mirror of https://github.com/neovim/neovim.git synced 2026-12-03 17:15:10 +00:00
Vim-fork focused on extensibility and usability https://neovim.io
  • Vim Script 38.8%
  • Lua 33.7%
  • C 26.5%
  • CMake 0.4%
  • Zig 0.2%
  • Other 0.1%
Find a file
Andrea Covelli df50a4ebd6
fix(context): E812 when opening a file as "./f" or "/abs/f" with ui2 #43081
Problem:
With ui2 enabled, opening a file whose swapfile belongs to another Nvim
fails with E812 if the file is named "./f" or by an absolute path. ui2
shows the W325 message in a window, a context switch whose restore calls
shorten_fnames(true). That renames the buffer from "./f" to "f", and
readfile() takes it for an autocommand changing the buffer name.

Solution:
Shorten buffer names after a context switch only if the CWD moved.
2026-12-03 06:04:55 -05:00
.github ci(deps): bump binaryen to 133 2026-11-19 09:33:26 +01:00
cmake build(deps): bump libuv to v1.53.0 2026-11-06 16:54:01 +01:00
cmake.config build: haiku os support #36639 2025-11-23 09:45:00 -08:00
cmake.deps build(deps): bump luajit to b82d612fe 2026-11-29 12:26:11 +01:00
cmake.packaging build: deb package reverts to "nvim.deb" on reconfigure #42831 2026-11-14 07:01:54 -05:00
contrib test(harness): improve contrib/plugin_test.mk #42787 2026-11-10 13:48:06 -05:00
runtime fix(cmdwin): c_CTRL-F does nothing if cmdwin in another tabpage #43080 2026-12-03 05:25:40 -05:00
scripts build(vim-patch): n/a docs for GUI, agents.md, windows mch_fopen() #43077 2026-12-02 02:20:34 -05:00
src fix(context): E812 when opening a file as "./f" or "/abs/f" with ui2 #43081 2026-12-03 06:04:55 -05:00
test fix(context): E812 when opening a file as "./f" or "/abs/f" with ui2 #43081 2026-12-03 06:04:55 -05:00
.clang-format fix(style): drop clang-format #39514 2026-05-01 10:01:40 -04:00
.clang-tidy build(clang-tidy): disable checks renamed from cert-xx #42049 2026-09-23 10:08:53 -04:00
.clangd build(zig): add formatc and lintc steps 2026-06-17 01:03:55 -04:00
.editorconfig fix(editorconfig): use 4 spaces indentation for zig files 2026-01-13 22:09:03 -05:00
.emmyrc.json ci(lua): enable annotation and style checks 2026-09-30 17:56:01 +01:00
.git-blame-ignore-revs docs: .git-blame-ignore-revs #26397 2024-01-28 15:03:10 -08:00
.gitattributes build(vim-patch): detect N/A tags in vimhelp patches #40942 2026-07-25 12:16:03 -04:00
.gitignore fix(build): more changes to make zig 0.16.0 work 2026-04-21 12:46:01 +02:00
.luacheckrc test(harness): migrate away from magic globals 2026-07-21 13:22:39 +02:00
.luacov build: move shared.lua to _core/ 2025-12-30 01:44:52 -05:00
.luarc.json build: replace LuaLS with EmmyLua 2026-09-07 15:33:22 +01:00
.mailmap docs: add Barrett Ruth to .mailmap #42385 2026-10-16 05:16:08 -04:00
.stylua.toml build: enable lintlua for scripts/ dir #26391 2023-12-04 12:38:31 -08:00
.stylua2.toml refactor(tests): lint decorations_spec, float_spec, multigrid_spec #33274 2025-05-06 18:00:20 -07:00
.styluaignore refactor(tests): lint decorations_spec, float_spec, multigrid_spec #33274 2025-05-06 18:00:20 -07:00
AGENTS.md ci: no AI advertisements #41492 2026-08-25 15:42:33 -04:00
BSDmakefile feat(lua)!: register_keystroke_callback => on_key 2021-09-09 06:09:33 -07:00
BUILD.md docs: misc (#42570) 2026-10-28 02:10:42 +00:00
build.zig fix(build.zig): fix building with system lua 2026-11-18 00:02:34 -05:00
build.zig.zon fix(build.zig): fix building with system lua 2026-11-18 00:02:34 -05:00
CMakeLists.txt feat(remote-ssh): lifecycle, cleanup, slow tests 2026-11-03 19:05:58 +01:00
CMakePresets.json docs: misc 2025-01-11 10:34:12 +01:00
CONTRIBUTING.md docs: contributing guidance #42728 2026-11-06 09:57:22 -05:00
INSTALL.md docs: misc #39045 2026-04-18 15:38:59 -04:00
LICENSE.txt docs: api, messages, lsp, trust 2026-03-11 18:00:18 +01:00
MAINTAIN.md build(deps): bump luv to 1.53.0-1 2026-11-10 16:42:27 +01:00
Makefile build: preserve the cached CMake build type #43019 2026-11-28 09:23:25 -05:00
README.md feat(ftplugin): treesitter default highlighting for markdown 2026-02-17 10:35:19 +01:00

Neovim

Documentation | Chat

Coverity Scan analysis Packages Debian CI Downloads

Neovim is a project that seeks to aggressively refactor Vim in order to:

See the Introduction wiki page and Roadmap for more information.

Features

See :help nvim-features for the full list, and :help news for noteworthy changes in the latest version!

Install from package

Pre-built packages for Windows, macOS, and Linux are found on the Releases page.

Managed packages are in Homebrew, Debian, Ubuntu, Fedora, Arch Linux, Void Linux, Gentoo, and more!

Install from source

See BUILD.md and supported platforms for details.

The build is CMake-based, but a Makefile is provided as a convenience. After installing the dependencies, run the following command.

make CMAKE_BUILD_TYPE=RelWithDebInfo
sudo make install

To install to a non-default location:

make CMAKE_BUILD_TYPE=RelWithDebInfo CMAKE_INSTALL_PREFIX=/full/path/
make install

CMake hints for inspecting the build:

  • cmake --build build --target help lists all build targets.
  • build/CMakeCache.txt (or cmake -LAH build/) contains the resolved values of all CMake variables.
  • build/compile_commands.json shows the full compiler invocations for each translation unit.

Transitioning from Vim

See :help nvim-from-vim for instructions.

Project layout

├─ cmake/           CMake utils
├─ cmake.config/    CMake defines
├─ cmake.deps/      subproject to fetch and build dependencies (optional)
├─ runtime/         plugins and docs
├─ src/nvim/        application source code (see src/nvim/README.md)
│  ├─ api/          API subsystem
│  ├─ eval/         Vimscript subsystem
│  ├─ event/        event-loop subsystem
│  ├─ generators/   code generation (pre-compilation)
│  ├─ lib/          generic data structures
│  ├─ lua/          Lua subsystem
│  ├─ msgpack_rpc/  RPC subsystem
│  ├─ os/           low-level platform code
│  └─ tui/          built-in UI
└─ test/            tests (see test/README.md)

License

Neovim contributions since b17d96 are licensed under the Apache 2.0 license, except for contributions copied from Vim (identified by the vim-patch token). See LICENSE.txt for details.