Automic VaultAutomic Vault

brew

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

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

安装

其他安装命令

macOS

Homebrew已验证 · 100%
brew install vim

local Homebrew formula metadata

MacPorts已验证 · 94%
sudo port install vim

MacPorts ports tree · editors/vim/Portfile · 来源: api.github.com

Linux

Alpine Linux apk已验证 · 92%
sudo apk add vim

Alpine Linux edge package indexes · vim · 来源: dl-cdn.alpinelinux.org

Debian apt已验证 · 92%
sudo apt install vim

Debian stable package indexes · vim · 来源: deb.debian.org

Nix已验证 · 92%
nix profile install nixpkgs#vim

nixpkgs package indexes · vim · 来源: raw.githubusercontent.com

Arch Linux pacman已验证 · 92%
sudo pacman -S vim

Arch Linux sync databases · vim · 来源: geo.mirror.pkgbuild.com

openSUSE zypper已验证 · 92%
sudo zypper install vim

openSUSE Tumbleweed package metadata · vim · 来源: download.opensuse.org

Fedora dnf已验证 · 92%
sudo dnf install vim-X11

Fedora Rawhide package metadata · vim-X11 · 来源: dl.fedoraproject.org

概览

软件包摘要

Vi 'workalike' with many additional features

命令和别名

  • ex
  • rview
  • rvim
  • vi
  • view
  • vim
  • vimdiff
  • vimtutor
  • xxd

历史

项目历史与用法

Vim is the long-running Vi IMproved text editor created by Bram Moolenaar and maintained as one of the central tools in Unix-like command-line culture. The official Vim README describes it as a greatly improved version of Unix vi with features such as multi-level undo, syntax highlighting, command-line history, online help, spell checking, filename completion, block operations, a scripting language, and an optional GUI while preserving vi compatibility.

项目历史

Vim began in the late 1980s as Bram Moolenaar's Amiga-oriented vi clone, initially called Vi IMitation and based on the Stevie editor lineage. Secondary historical summaries place the first public distribution of Vim 1.14 on Fred Fish disk #591 in January 1992, with later releases expanding from an Amiga editor into a portable Unix, Windows, macOS, and multi-platform editor.

As the editor gained functionality beyond imitation, the name became Vi IMproved. Important feature eras included multiple windows in the 3.x period, a GUI in the 4.x period, syntax highlighting and early scripting in Vim 5.0, folding and plugins in Vim 6.0, spell checking and completion in Vim 7.0, jobs and asynchronous I/O in Vim 8.0, popup windows and text properties in Vim 8.2, and Vim9 Script in Vim 9.0.

Bram Moolenaar remained Vim's central author and maintainer for more than 30 years. After his death in August 2023, upstream Vim continued under the project and contributor community; the Vim 9.1 release in January 2024 was dedicated to Moolenaar and described him as Vim's lead developer for more than 30 years.

采用历史

Vim became a default or near-default editor in many Unix-like environments because it preserves vi's keyboard model while adding programmer-oriented features. The upstream README notes that Vim is often installable through users' favorite package managers, that small versions are preinstalled on Mac and Linux, and that a minimal vim.tiny build is used by many Linux distributions as the default vi implementation.

Developer-culture adoption is reinforced by Vim's documentation, mailing lists, script ecosystem, and plugin culture. Vim's own help points users to vim.org, vimhelp, mailing lists, Vi and Vim Stack Exchange, and the built-in user manual, while the GitHub project lists the official repository and issue workflow used by modern contributors.

使用方式

Vim is used for editing source code, configuration files, prose, commit messages, logs, and other plain text. Its package-nerd value comes from being available over SSH, in containers, on recovery shells, and across operating systems, with a configuration model centered on vimrc files and scriptable behavior.

The editor's usage model is modal: normal mode commands, insert mode text entry, visual selections, Ex commands, registers, mappings, macros, and text objects combine into a keyboard-centered workflow. Vim's own introduction emphasizes that all commands are given with the keyboard, keeping fingers on the keyboard and eyes on the screen.

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

Vim is one of the canonical examples of a package that is both a normal user application and a system-level expectation. It appears as an editor, a vi provider, a scripting host, a terminal UI dependency for habits and tutorials, and the source of many Vim-like interfaces in unrelated programs.

Its significance is also social: Vim is charityware, historically encouraging donations for children in Uganda. That charityware model remains part of official Vim messaging and carried into related projects such as Vim Classic.

时间线

  • 1988: Bram Moolenaar starts work on what becomes Vim.
  • 1992: Vim 1.14 is publicly distributed via Fish Disk #591.
  • 1993: The name expansion Vi IMproved appears in the Vim 2.0 era.
  • 1998: Vim 5.0 adds syntax highlighting and basic scripting.
  • 2006: Vim 7.0 adds spell checking, completion, tabs, and undo branches.
  • 2016: Vim 8.0 adds jobs, asynchronous I/O, and lambdas.
  • 2022: Vim 9.0 introduces Vim9 Script.
  • 2023: Bram Moolenaar dies; community maintenance continues.
  • 2024: Vim 9.1 is released and dedicated to Bram Moolenaar.
  • 2026: Vim 9.2 is announced with further Vim9 language work and modern platform updates.

Related projects

  • Vim descends from the vi editor tradition but is a distinct codebase with major extensions. Related projects include gVim, MacVim, Neovim, Vim Classic, vi-compatible implementations such as nvi and ex-vi, and a large ecosystem of Vim scripts and plugin managers.

安全态势

尚未找到受保护工具覆盖

没有找到 vim 的匹配本地密钥处理 manifest。Nucleus 软件包元数据仍在此发布,以便未来覆盖拥有稳定的软件包 URL。

安装行为

  • formula 元数据中未记录 Homebrew post-install 钩子。
  • Homebrew bottle 元数据适用于 6 个平台目标。
  • 安装时包含 3 个运行时依赖。
  • 构建元数据列出 4 个构建依赖。

建议审查

在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。

local files

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

Config paths the tool may read or write during local use.

Unix
~/.vimrc~/.vim/vimrc$XDG_CONFIG_HOME/vim/vimrc
Windows
~/_vimrc~/vimfiles/vimrc$VIM/_vimrc

可执行文件

已安装的可执行文件

命令类型暴露范围备注
excli全局可执行文件
rviewcli全局可执行文件
rvimcli全局可执行文件
vicli全局可执行文件
viewcli全局可执行文件
vimcli全局可执行文件
vimdiffcli全局可执行文件
vimtutorcli全局可执行文件
xxdcli全局可执行文件

新鲜度

版本和新鲜度

这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。

页面生成时间2026-07-25
管理器版本9.2.0850
管理器更新时间2026-07-24
本地数据OK
上游当前
检测到的最新版本v9.2.0850

https://github.com/vim/vim

  • OK没有生成新鲜度警告。

安装元数据

软件包元数据

软件包键brew:vim
版本9.2.0850
软件包管理器Homebrew
软件包管理器页面https://formulae.brew.sh/formula/vim
主页https://www.vim.org/
仓库https://github.com/vim/vim
上游文档https://vimhelp.org/
许可证Vim
源码归档https://github.com/vim/vim/archive/refs/tags/v9.2.0850.tar.gz
最后更新2026-07-24T21:42:29Z
Pulseupdated
依赖gettext, libsodium, ncurses
构建依赖gettext, lua, python@3.14, ruby
Bottle可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux)
Homebrew post-install未定义
服务未声明
注意事项Additional features can be enabled by installing: lua, python@3.14, ruby

注册表事实

源数据库详情

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Namevim
Version Scheme0
Revision0
Head VersionHEAD
Conflicts With
  • ex-vi
  • macvim
  • vim-classic
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • head
  • stable

源数据库匹配

其他软件包管理器记录

匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。

Debian apt95%

vim 2:9.1.1230-2

Vi IMproved - enhanced vi editor

https://www.vim.org/

sudo apt install vim
  • Section: editors
  • Architecture: amd64
  • 8 依赖
  • 1 提供
  • 3 可选依赖
  • normalized package name match
  • 匹配方式:Vim
Debian stable package indexes · deb.debian.org · Debian stable package indexes: vim from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

vim-athena 2:9.1.1230-2

Vi IMproved - enhanced vi editor (dummy package)

https://www.vim.org/

sudo apt install vim-athena
  • Section: editors
  • Architecture: all
  • Source Package: vim
  • 1 依赖
  • normalized package name match
  • 匹配方式:Vim
Debian stable package indexes · deb.debian.org · Debian stable package indexes: vim-athena from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

vim-common 2:9.1.1230-2

Vi IMproved - Common files

https://www.vim.org/

sudo apt install vim-common
  • Section: editors
  • Architecture: all
  • Source Package: vim
  • 6 可选依赖
  • normalized package name match
  • 匹配方式:Vim
Debian stable package indexes · deb.debian.org · Debian stable package indexes: vim-common from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

vim-doc 2:9.1.1230-2

Vi IMproved - HTML documentation

https://www.vim.org/

sudo apt install vim-doc
  • Section: doc
  • Architecture: all
  • Source Package: vim
  • normalized package name match
  • 匹配方式:Vim
Debian stable package indexes · deb.debian.org · Debian stable package indexes: vim-doc from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

vim-gtk3 2:9.1.1230-2

Vi IMproved - enhanced vi editor - with GTK3 GUI

https://www.vim.org/

sudo apt install vim-gtk3
  • Section: editors
  • Architecture: amd64
  • Source Package: vim
  • 25 依赖
  • 8 提供
  • 4 可选依赖
  • normalized package name match
  • 匹配方式:Vim
Debian stable package indexes · deb.debian.org · Debian stable package indexes: vim-gtk3 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

vim-gui-common 2:9.1.1230-2

Vi IMproved - Common GUI files

https://www.vim.org/

sudo apt install vim-gui-common
  • Section: editors
  • Architecture: all
  • Source Package: vim
  • 2 可选依赖
  • normalized package name match
  • 匹配方式:Vim
Debian stable package indexes · deb.debian.org · Debian stable package indexes: vim-gui-common from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

vim-motif 2:9.1.1230-2

Vi IMproved - enhanced vi editor - with Motif GUI

https://www.vim.org/

sudo apt install vim-motif
  • Section: editors
  • Architecture: amd64
  • Source Package: vim
  • 20 依赖
  • 8 提供
  • 2 可选依赖
  • normalized package name match
  • 匹配方式:Vim
Debian stable package indexes · deb.debian.org · Debian stable package indexes: vim-motif from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

vim-nox 2:9.1.1230-2

Vi IMproved - enhanced vi editor - with scripting languages support

https://www.vim.org/

sudo apt install vim-nox
  • Section: editors
  • Architecture: amd64
  • Source Package: vim
  • 13 依赖
  • 7 提供
  • 2 可选依赖
  • normalized package name match
  • 匹配方式:Vim
Debian stable package indexes · deb.debian.org · Debian stable package indexes: vim-nox from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

vim-runtime 2:9.1.1230-2

Vi IMproved - Runtime files

https://www.vim.org/

sudo apt install vim-runtime
  • Section: editors
  • Architecture: all
  • Source Package: vim
  • 5 可选依赖
  • normalized package name match
  • 匹配方式:Vim
Debian stable package indexes · deb.debian.org · Debian stable package indexes: vim-runtime from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

vim-tiny 2:9.1.1230-2

Vi IMproved - enhanced vi editor - compact version

https://www.vim.org/

sudo apt install vim-tiny
  • Section: editors
  • Architecture: amd64
  • Source Package: vim
  • 5 依赖
  • 1 提供
  • 1 可选依赖
  • normalized package name match
  • 匹配方式:Vim
Debian stable package indexes · deb.debian.org · Debian stable package indexes: vim-tiny from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

xxd 2:9.1.1230-2

tool to make (or reverse) a hex dump

https://www.vim.org/

sudo apt install xxd
  • Section: editors
  • Architecture: amd64
  • Source Package: vim
  • 1 依赖
  • normalized package name match
  • 匹配方式:Vim
Debian stable package indexes · deb.debian.org · Debian stable package indexes: xxd from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Nix95%

vim

nix profile install nixpkgs#vim
  • normalized package name match
  • 匹配方式:Vim
nixpkgs package indexes · raw.githubusercontent.com · nixpkgs package indexes: vim from https://raw.githubusercontent.com/NixOS/nixpkgs/master/pkgs/top-level/all-packages.nix
Ubuntu apt95%

vim 2:9.1.0016-1ubuntu7

Vi IMproved - enhanced vi editor

https://www.vim.org/

sudo apt install vim
  • Section: editors
  • Architecture: amd64
  • 9 依赖
  • 1 提供
  • 3 可选依赖
  • normalized package name match
  • 匹配方式:Vim
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: vim from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz
Ubuntu apt95%

vim-athena 2:9.1.0016-1ubuntu7

Vi IMproved - enhanced vi editor (dummy package)

https://www.vim.org/

sudo apt install vim-athena
  • Section: universe/editors
  • Architecture: all
  • Source Package: vim
  • 1 依赖
  • normalized package name match
  • 匹配方式:Vim
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: vim-athena from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
Ubuntu apt95%

vim-common 2:9.1.0016-1ubuntu7

Vi IMproved - Common files

https://www.vim.org/

sudo apt install vim-common
  • Section: editors
  • Architecture: all
  • Source Package: vim
  • 6 可选依赖
  • normalized package name match
  • 匹配方式:Vim
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: vim-common from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz
Ubuntu apt95%

vim-doc 2:9.1.0016-1ubuntu7

Vi IMproved - HTML documentation

https://www.vim.org/

sudo apt install vim-doc
  • Section: editors
  • Architecture: all
  • Source Package: vim
  • normalized package name match
  • 匹配方式:Vim
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: vim-doc from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz

来源线索

由仓库数据生成

此页面由 av-webscripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。

使用的来源

  • Geiger risk classifier
  • Nucleus package database
  • av.db category and tag curation
  • cross-ecosystem install command graph
  • curated configuration and credential file locations
  • curated package history
  • external package-manager database matches
  • package relationship graph
  • package version freshness
  • package-page enrichment