# 使用 Homebrew, apk, chocolatey, apt, dnf, MacPorts, Nix, pacman, zypper, scoop, winget 安装 neovim

查看 neovim 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

## 安装

```sh
sudo av install brew:neovim
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install neovim
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install neovim
```

  证据: MacPorts ports tree: editors/neovim/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- apk (92%):

```sh
sudo apk add neovim
```

  证据: Alpine Linux edge package indexes: neovim from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz

- Debian apt (92%):

```sh
sudo apt install neovim
```

  证据: Debian stable package indexes: neovim from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- dnf (92%):

```sh
sudo dnf install neovim
```

  证据: Fedora Rawhide package metadata: neovim from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst

- Nix (92%):

```sh
nix profile install nixpkgs#neovim
```

  证据: nixpkgs package indexes: neovim from https://raw.githubusercontent.com/NixOS/nixpkgs/master/pkgs/top-level/all-packages.nix

- pacman (92%):

```sh
sudo pacman -S neovim
```

  证据: Arch Linux sync databases: neovim from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

- zypper (92%):

```sh
sudo zypper install neovim
```

  证据: openSUSE Tumbleweed package metadata: neovim from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst

### Windows

- Chocolatey (92%):

```sh
choco install neovim
```

  证据: Chocolatey community package catalog: neovim from http://community.chocolatey.org/api/v2/Packages?$filter=IsLatestVersion&$select=Id&$top=1000&$skiptoken='11','multipass'

- Scoop (92%):

```sh
scoop install main/neovim
```

  证据: Scoop official bucket manifest trees: bucket/neovim.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1

- winget (92%):

```sh
winget install --id Neovim.Neovim -e
```

  证据: Windows Package Manager source index: Neovim.Neovim from https://cdn.winget.microsoft.com/cache/source.msix

## 软件包事实

- **软件包键:** brew:neovim
- **软件包管理器:** Homebrew
- **版本:** 0.12.4
- **来源摘要:** Ambitious Vim-fork focused on extensibility and agility
- **主页:** <https://neovim.io/>
- **仓库:** <https://github.com/neovim/neovim>
- **最后更新:** 2026-07-05T23:07:25Z
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- nvim (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 0.12.4
## 项目历史与用法

Neovim is a Vim fork focused on extensibility, usability, maintainability, and embeddable/editor-as-engine architecture. It is the significant package in this batch: the other Neovim-related packages exist largely because Neovim exposed APIs, RPC, and UI surfaces that support external clients and workflow tools.

### 项目历史

The `neovim/neovim` repository was created on 2014-01-31, and the project's wiki introduction existed by 2014-03-07. The README describes Neovim as an effort to aggressively refactor Vim in order to simplify maintenance, distribute work across contributors, enable advanced UIs without core changes, and maximize extensibility.

Neovim v0.1.0 was tagged on 2015-11-01. Later milestone lines made the fork feel less like a cleanup project and more like a modern editor platform: embedded terminal support, job control, MessagePack RPC, external UIs, Lua scripting and configuration, LSP, Tree-sitter, and a growing package/plugin ecosystem.

### 采用历史

By 2026-07-01, GitHub metadata showed about 100,837 stars and 6,942 forks. Homebrew analytics listed 41,028 installs in 30 days, 137,631 in 90 days, and 513,070 in 365 days, far beyond the satellite GUI/helper packages in this batch.

Adoption is visible across package managers and operating systems: the README points to managed packages in Homebrew, Debian, Ubuntu, Fedora, Arch, Void, Gentoo, and more, while the input record also lists Chocolatey, Scoop, winget, MacPorts, Nix, apk, pacman, dnf, and zypper package names.

The ecosystem role changed over time. Early adopters cared about async jobs, remote plugins, terminal integration, and a cleaned-up codebase. Later adopters often arrive through Lua-first configuration, built-in LSP, Tree-sitter-driven editing, plugin managers, and distributions/configurations that use Neovim as a programmable editor platform.

### 使用方式

Users run `nvim` directly in terminals, set it as `$EDITOR`, embed it into GUIs or IDEs, run it headless for scripting, or configure it through `init.vim` and `init.lua` under the XDG config directory. The project keeps Vim's editing model and Vimscript compatibility while exposing newer Lua and API workflows.

Package nerds tend to care about Neovim's build and runtime boundaries: it is a standalone editor package, a shared dependency for GUI clients such as Neovide and Neovim Qt, and a target process for helpers such as `nvr`. Its package freshness matters because plugins and external clients often depend on relatively new API behavior.

### 为什么软件包爱好者会关心

Neovim is one of the clearest examples of a Unix-y tool becoming a platform through stable APIs instead of a single monolithic GUI. In package databases, it should be enriched not just as an editor, but as an ecosystem root for Lua plugins, LSP workflows, external UIs, headless automation, and Vim-compatible terminal editing.

### 时间线

- {'date': '2014-01-31', 'event': 'The `neovim/neovim` GitHub repository was created.'}
- {'date': '2014-03-07', 'event': 'The Neovim wiki Introduction page was created.'}
- {'date': '2015-11-01', 'event': 'Neovim v0.1.0 was tagged.'}
- {'date': '2021-07-02', 'event': 'Neovim v0.5.0 was tagged, a major milestone for Lua-era configuration and plugin development.'}
- {'date': '2024-05-16', 'event': 'Neovim v0.10.0 was tagged.'}
- {'date': '2026-06-10', 'event': 'Neovim v0.12.3 was published as the stable release line represented in Homebrew on 2026-07-01.'}

### Related projects

- Vim
- Neovide
- Neovim Qt
- neovim-remote
- vscode-neovim
- Firenvim
- Tree-sitter
- LuaJIT
- libuv

### 来源

- <https://api.github.com/repos/neovim/neovim>
- <https://api.github.com/repos/neovim/neovim/releases?per_page=100>
- <https://formulae.brew.sh/api/formula/neovim.json>
- <https://github.com/neovim/neovim>
- <https://github.com/neovim/neovim/wiki/Introduction/_history>
- <https://neovim.io/>
- <https://neovim.io/doc/user/lua.html>
- <https://neovim.io/doc/user/news.html>


## 安全说明

narrow executable package without higher-risk signals.

- **Geiger 风险:** 绿色 / 低
- narrow executable package without higher-risk signals


## Configuration and credential file locations

These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.


## Configuration files

- Unix: $XDG_CONFIG_HOME/nvim/init.vim, $XDG_CONFIG_HOME/nvim/init.lua, ~/.config/nvim/init.vim, ~/.config/nvim/init.lua
- Windows: ~/AppData/Local/nvim/init.vim, ~/AppData/Local/nvim/init.lua
## 其他软件包管理器记录

- Debian apt - neovim - 0.10.4-8: normalized package name match | Debian stable package indexes: neovim from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | heavily refactored vim fork | https://neovim.io/
- Debian apt - neovim-runtime - 0.10.4-8: normalized package name match | Debian stable package indexes: neovim-runtime from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | heavily refactored vim fork (runtime files) | https://neovim.io/
- Nix - neovim: normalized package name match | nixpkgs package indexes: neovim from https://raw.githubusercontent.com/NixOS/nixpkgs/master/pkgs/top-level/all-packages.nix
- Ubuntu apt - neovim - 0.9.5-6ubuntu2: normalized package name match | Ubuntu 24.04 LTS package indexes: neovim from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | heavily refactored vim fork | https://neovim.io/
- Ubuntu apt - neovim-runtime - 0.9.5-6ubuntu2: normalized package name match | Ubuntu 24.04 LTS package indexes: neovim-runtime from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | heavily refactored vim fork (runtime files) | https://neovim.io/
- apk - neovim - 0.12.2-r0: normalized package name match | Alpine Linux edge package indexes: neovim from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Vim-fork focused on extensibility and agility | https://neovim.io/
- apk - neovim-doc - 0.12.2-r0: normalized package name match | Alpine Linux edge package indexes: neovim-doc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Vim-fork focused on extensibility and agility (documentation) | https://neovim.io/
- apk - neovim-lang - 0.12.2-r0: normalized package name match | Alpine Linux edge package indexes: neovim-lang from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Languages for package neovim | https://neovim.io/
- dnf - neovim - 0.12.4-4.fc45: normalized package name match | Fedora Rawhide package metadata: neovim from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Vim-fork focused on extensibility and agility | https://neovim.io
- pacman - neovim - 0.12.4-1: normalized package name match | Arch Linux sync databases: neovim from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | Fork of Vim aiming to improve user experience, plugins, and GUIs | https://neovim.io
- zypper - neovim - 0.12.4-1.1: normalized package name match | openSUSE Tumbleweed package metadata: neovim from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Vim-fork focused on extensibility and agility | https://neovim.io/
- zypper - neovim-lang - 0.12.4-1.1: normalized package name match | openSUSE Tumbleweed package metadata: neovim-lang from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Translations for package neovim | https://neovim.io/
- MacPorts - neovim: normalized package name match | MacPorts ports tree: editors/neovim/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
- Chocolatey - neovim: normalized package name match | Chocolatey community package catalog: neovim from http://community.chocolatey.org/api/v2/Packages?$filter=IsLatestVersion&$select=Id&$top=1000&$skiptoken='11','multipass'
- Scoop - main/neovim: normalized package name match | Scoop official bucket manifest trees: bucket/neovim.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1
- winget - Neovim.Neovim: normalized package name match | Windows Package Manager source index: Neovim.Neovim from https://cdn.winget.microsoft.com/cache/source.msix


## 相关链接

- [neovim](https://pkg.so/zh-hans/pkg/npm/neovim/) - Same normalized package name exists in another local package ecosystem.

## Combined YAML source

View the package source record on GitHub. [combined/neovim.yml](https://github.com/mxcl/pkgdb/blob/main/combined/neovim.yml)


## 来源

- pkg.so package database
- Geiger risk classifier
- curated configuration and credential file locations
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
