# Install vim with Homebrew, apk, chocolatey, apt, dnf, MacPorts, Nix, pacman, scoop, winget, zypper

Vi 'workalike' with many additional features. Version 9.2.0750 via Homebrew; verified 2026-06-29.

## Install

```sh
sudo av install brew:vim
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install vim
```

  Evidence: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install vim
```

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

### Linux

- apk (92%):

```sh
sudo apk add gvim
```

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

- Debian apt (92%):

```sh
sudo apt install vim
```

  Evidence: Debian stable package indexes: vim from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- dnf (92%):

```sh
sudo dnf install vim-X11
```

  Evidence: Fedora Rawhide package metadata: vim-X11 from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst

- Nix (92%):

```sh
nix profile install nixpkgs#vim
```

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

- pacman (92%):

```sh
sudo pacman -S vim
```

  Evidence: Arch Linux sync databases: vim from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

- zypper (92%):

```sh
sudo zypper install gvim
```

  Evidence: openSUSE Tumbleweed package metadata: gvim from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst

### Windows

- Chocolatey (92%):

```sh
choco install vim
```

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

- Scoop (92%):

```sh
scoop install main/vim
```

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

- winget (92%):

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

  Evidence: Windows Package Manager source index: vim.vim from https://cdn.winget.microsoft.com/cache/source.msix

## Package facts

- **Package key:** brew:vim
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/vim>
- **Version:** 9.2.0750
- **Source summary:** Vi 'workalike' with many additional features
- **Homepage:** <https://www.vim.org/>
- **Repository:** <https://github.com/vim/vim>
- **Upstream docs:** <https://vimhelp.org/>
- **License:** Vim
- **Source archive:** <https://github.com/vim/vim/archive/refs/tags/v9.2.0750.tar.gz>
- **Last updated:** 2026-06-29T21:53:21Z
- **Generated:** 2026-07-08T07:18:31+00:00

## Executables

- ex (cli)
- rview (cli)
- rvim (cli)
- vi (cli)
- view (cli)
- vim (cli)
- vimdiff (cli)
- vimtutor (cli)
- xxd (cli)
- ex (alias)
- rview (alias)
- rvim (alias)
- vi (alias)
- view (alias)
- vim (alias)
- vimdiff (alias)
- vimtutor (alias)
- xxd (alias)

## Dependencies

- gettext
- libsodium
- ncurses

## Build dependencies

- gettext
- lua
- python@3.14
- ruby

## Install behavior

- Post-install hook: not defined
- Caveats: Additional features can be enabled by installing: lua, python@3.14, ruby
- Bottle: available on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## Freshness

- Page generated: 2026-07-08
- Package-manager version: 9.2.0750
- Package-manager updated: 2026-06-29
- Local data: ok
- Upstream repository: https://github.com/vim/vim
- Upstream latest detected: v9.2.0750 (current)
## Project history and usage

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.

### Project history

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.

### Adoption history

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.

### How it is used

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.

### Why package nerds care

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.

### Timeline

- 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.

### Sources

- <https://en.wikipedia.org/wiki/Vim_(text_editor)>
- <https://github.com/vim/vim>
- <https://vimhelp.org/intro.txt.html>
- <https://www.vim.org/>
- <https://www.vim.org/vim-9.1-released.php>
- <https://www.vim.org/vim90.php>


## Security Notes

No matching local secret-handling manifest was found for vim. Nucleus package metadata is still published here so future coverage has a stable package URL.



## 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: ~/.vimrc, ~/.vim/vimrc, $XDG_CONFIG_HOME/vim/vimrc
- Windows: ~/_vimrc, ~/vimfiles/vimrc, $VIM/_vimrc
## Source Database Details

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** vim
- **Version Scheme:** 0
- **Revision:** 0
- **Head Version:** HEAD
- **Conflicts With:** ex-vi, macvim, vim-classic
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** head, stable

## Other Package-Manager Records

- Debian apt - vim - 2:9.1.1230-2: normalized package name match | Debian stable package indexes: vim from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Vi IMproved - enhanced vi editor | https://www.vim.org/
- Debian apt - vim-athena - 2:9.1.1230-2: normalized package name match | Debian stable package indexes: vim-athena from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Vi IMproved - enhanced vi editor (dummy package) | https://www.vim.org/
- Debian apt - vim-common - 2:9.1.1230-2: normalized package name match | Debian stable package indexes: vim-common from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Vi IMproved - Common files | https://www.vim.org/
- Debian apt - vim-doc - 2:9.1.1230-2: normalized package name match | Debian stable package indexes: vim-doc from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Vi IMproved - HTML documentation | https://www.vim.org/
- Debian apt - vim-gtk3 - 2:9.1.1230-2: normalized package name match | Debian stable package indexes: vim-gtk3 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Vi IMproved - enhanced vi editor - with GTK3 GUI | https://www.vim.org/
- Debian apt - vim-gui-common - 2:9.1.1230-2: normalized package name match | Debian stable package indexes: vim-gui-common from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Vi IMproved - Common GUI files | https://www.vim.org/
- Debian apt - vim-motif - 2:9.1.1230-2: normalized package name match | Debian stable package indexes: vim-motif from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Vi IMproved - enhanced vi editor - with Motif GUI | https://www.vim.org/
- Debian apt - vim-nox - 2:9.1.1230-2: normalized package name match | Debian stable package indexes: vim-nox from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Vi IMproved - enhanced vi editor - with scripting languages support | https://www.vim.org/
- Debian apt - vim-runtime - 2:9.1.1230-2: normalized package name match | Debian stable package indexes: vim-runtime from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Vi IMproved - Runtime files | https://www.vim.org/
- Debian apt - vim-tiny - 2:9.1.1230-2: normalized package name match | Debian stable package indexes: vim-tiny from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Vi IMproved - enhanced vi editor - compact version | https://www.vim.org/
- Debian apt - xxd - 2:9.1.1230-2: normalized package name match | Debian stable package indexes: xxd from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | tool to make (or reverse) a hex dump | https://www.vim.org/
- Nix - vim: normalized package name match | nixpkgs package indexes: vim from https://raw.githubusercontent.com/NixOS/nixpkgs/master/pkgs/top-level/all-packages.nix
- Ubuntu apt - vim - 2:9.1.0016-1ubuntu7: normalized package name match | Ubuntu 24.04 LTS package indexes: vim from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | Vi IMproved - enhanced vi editor | https://www.vim.org/
- Ubuntu apt - vim-athena - 2:9.1.0016-1ubuntu7: normalized package name match | Ubuntu 24.04 LTS package indexes: vim-athena from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Vi IMproved - enhanced vi editor (dummy package) | https://www.vim.org/
- Ubuntu apt - vim-common - 2:9.1.0016-1ubuntu7: normalized package name match | Ubuntu 24.04 LTS package indexes: vim-common from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | Vi IMproved - Common files | https://www.vim.org/
- Ubuntu apt - vim-doc - 2:9.1.0016-1ubuntu7: normalized package name match | Ubuntu 24.04 LTS package indexes: vim-doc from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | Vi IMproved - HTML documentation | https://www.vim.org/


## Related links

- [Terminal utility packages](https://www.automicvault.com/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Networking and protocol packages](https://www.automicvault.com/pkg/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [Productivity CLI packages](https://www.automicvault.com/pkg/productivity-cli-packages/) - Matched curated productivity category metadata from av.db.
- [Homebrew utility packages](https://www.automicvault.com/pkg/brew-utility-packages/) - Matched Homebrew package provider.
- [gettext](https://www.automicvault.com/pkg/brew/gettext/) - Runtime dependency declared by Homebrew.
- [ncurses](https://www.automicvault.com/pkg/brew/ncurses/) - Runtime dependency declared by Homebrew.
- [lua](https://www.automicvault.com/pkg/brew/lua/) - Build dependency declared by Homebrew.
- [python@3.14](https://www.automicvault.com/pkg/brew/python-3-14/) - Build dependency declared by Homebrew.
- [ruby](https://www.automicvault.com/pkg/brew/ruby/) - Build dependency declared by Homebrew.
- [vimtutor-sequel](https://www.automicvault.com/pkg/brew/vimtutor-sequel/) - Popular package that depends on this formula.
- [cbonsai](https://www.automicvault.com/pkg/brew/cbonsai/) - Shares av.db curated category or tags: cli, ncurses, productivity, terminal.
- [ctpv](https://www.automicvault.com/pkg/brew/ctpv/) - Shares av.db curated category or tags: cli, file-management, file-manager, productivity, terminal.
- [far2l-tty](https://www.automicvault.com/pkg/brew/far2l-tty/) - Shares av.db curated category or tags: cli, file-management, file-manager, productivity, terminal.
- [fdclone](https://www.automicvault.com/pkg/brew/fdclone/) - Shares av.db curated category or tags: cli, file-management, file-manager, productivity, terminal.
- [lf](https://www.automicvault.com/pkg/brew/lf/) - Shares av.db curated category or tags: cli, file-management, file-manager, productivity, terminal.
- [midnight-commander](https://www.automicvault.com/pkg/brew/midnight-commander/) - Shares av.db curated category or tags: cli, file-management, file-manager, productivity, terminal.
- [nnn](https://www.automicvault.com/pkg/brew/nnn/) - Shares av.db curated category or tags: cli, file-management, file-manager, productivity, terminal.
- [projectable](https://www.automicvault.com/pkg/brew/projectable/) - Shares av.db curated category or tags: cli, file-management, file-manager, productivity, terminal.

## Combined YAML source

View the package source record on GitHub. [combined/vim.yml](https://github.com/automic-vault/db/blob/main/combined/vim.yml)


## Sources

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