# macvim を Homebrew, Nix, MacPorts, apk, pacman, zypper, dnf でインストール

macvim のインストール経路、実行ファイル、メタデータ、AI エージェント向けセキュリティノートを確認します。

## インストール

```sh
sudo av install brew:macvim
```

追加のインストールコマンド:

### macOS

- Homebrew (100%):

```sh
brew install macvim
```

  証拠: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install MacVim
```

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

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#macvim
```

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

- apk (92%):

```sh
sudo apk add gvim
```

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

- pacman (92%):

```sh
sudo pacman -S gvim
```

  証拠: Arch Linux sync databases: gvim from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

- zypper (92%):

```sh
sudo zypper install gvim
```

  証拠: openSUSE Tumbleweed package metadata: gvim from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst

- dnf (92%):

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

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

## パッケージ情報

- **パッケージキー:** brew:macvim
- **パッケージマネージャ:** Homebrew
- **バージョン:** 9.2.0321
- **ソース概要:** GUI for vim, made for macOS
- **ホームページ:** <https://macvim.org>
- **リポジトリ:** <https://github.com/macvim-dev/macvim>
- **最終更新:** 2026-06-22T14:05:25-07:00
- **生成日時:** 2026-08-03T19:37:03+00:00

## 実行可能ファイル

- gview (エイリアス)
- gvim (エイリアス)
- gvimdiff (エイリアス)
- gvimex (エイリアス)
- gvimtutor (エイリアス)
- mview (エイリアス)
- mvim (エイリアス)
- mvimdiff (エイリアス)
- mvimex (エイリアス)
- vimex (エイリアス)

## インストール挙動

- Bottle: 利用不可

## バージョンと鮮度

- ページ生成日: 2026-08-03
- マネージャ版: 9.2.0321
## プロジェクトの歴史と使われ方

MacVim is the macOS GUI distribution of Vim. The project describes it as a macOS version of Vim with a graphical interface, tight platform integration, menus, dialogs, toolbars, scroll bars, full-screen modes, trackpad gestures, Touch Bar support, Command-key mappings, system services, and Mac-specific text rendering.

### プロジェクトの歴史

MacVim is maintained as a downstream fork of Vim rather than a thin wrapper. The official README says it routinely merges upstream Vim, while the maintainer wiki explains that MacVim is an intrusive fork because Vim was not designed as an embeddable editor engine and because native macOS GUI behavior requires code, runtime, and documentation changes throughout the tree.

The project’s current documentation lives on macvim.org and in the GitHub wiki. The MacVim help site is generated from the MacVim source repository and presents the bundled Vim help files plus MacVim-specific help such as `gui_mac.txt`.

### 採用の歴史

MacVim has long been the package-manager answer for developers who want Vim as a native macOS app rather than only inside Terminal. The official README documents both `brew install macvim` and the Homebrew cask `macvim-app`, and the installing wiki distinguishes the official binary release from Homebrew-managed updates.

The GitHub repository shows a large public history, many releases, thousands of stars, hundreds of forks, and a wiki, which reflects MacVim’s role as a durable macOS developer tool rather than a one-off GUI port.

### 使われ方

After installation, MacVim can be launched from the Dock or from the terminal with `mvim`. Homebrew’s formula installs CLI entry points such as `mvim`, `gvim`, `gview`, and diff variants, letting users keep Vim workflows while opening files in a native GUI bundle.

Configuration follows Vim conventions. The official help lists Unix personal initialization files such as `$HOME/.vimrc`, `$HOME/.vim/vimrc`, and `$XDG_CONFIG_HOME/vim/vimrc`; MacVim-specific help recommends keeping GUI customizations in `~/.gvimrc` rather than editing the system `gvimrc` that is overwritten on update.

### パッケージ好きにとっての重要性

MacVim is significant because it sits at the intersection of Unix editor culture and native Mac application packaging. It gives package managers a concrete artifact that is both a terminal-oriented Vim build and a macOS app bundle, with the classic tension between fast upstream Vim updates and platform-specific GUI release quality.

For Homebrew users, `macvim` versus `vim` is a meaningful package distinction: the upstream Vim package generally tracks core Vim more directly, while MacVim bundles a GUI app and Mac-specific behavior. That distinction is explicitly called out in the official README.

### タイムライン

- Public repository: MacVim Git history includes snapshot tags and release tags in the official repository.
- 2023: The official wiki home page records active maintenance by macvim-dev.
- 2026: macvim.org documentation reports current generated help for MacVim r183.1 and Vim 9.2.699.
- 2026: GitHub repository page lists MacVim r183 as the latest release on Apr 8, 2026.

### Related projects

- MacVim is directly related to upstream Vim, from which it routinely merges. It is also related to Homebrew's `vim` formula, GUI Vim variants, and Neovim in the broader editor ecosystem, but its official docs position it specifically as the native macOS GUI for Vim.

### ソース

- <https://github.com/macvim-dev/macvim>
- <https://github.com/macvim-dev/macvim/wiki/Installing>
- <https://github.com/macvim-dev/macvim/wiki/Merging-from-upstream-Vim>
- <https://macvim.org/>
- <https://macvim.org/docs/>
- <https://macvim.org/docs/gui_mac.txt.html>
- <https://macvim.org/docs/starting.txt.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

- macOS: ~/.vimrc, ~/.vim/vimrc, $XDG_CONFIG_HOME/vim/vimrc, ~/.gvimrc
## 他のパッケージマネージャ記録

- Nix - macvim: normalized package name match | nixpkgs package indexes: macvim from https://raw.githubusercontent.com/NixOS/nixpkgs/master/pkgs/top-level/all-packages.nix
- MacPorts - MacVim: normalized package name match | MacPorts ports tree: editors/MacVim/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
- apk - gvim - 9.2.0854-r0: installed executable or alias match | Alpine Linux edge package indexes: gvim from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Improved vi-style text editor (GTK3 GUI) | https://www.vim.org/
- dnf - vim-X11 - 9.2.843-1.fc45: installed executable or alias match | Fedora Rawhide package metadata: vim-X11 from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | The VIM version of the vi editor for the X Window System - GVim | https://www.vim.org/
- pacman - gvim - 9.2.0849-1: installed executable or alias match | Arch Linux sync databases: gvim from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | Vi Improved, a highly configurable, improved version of the vi text editor (with advanced features, such as a GUI) | https://www.vim.org
- zypper - gvim - 9.2.0780-4.1: installed executable or alias match | openSUSE Tumbleweed package metadata: gvim from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | A GUI for Vi | https://www.vim.org/


## Combined YAML source

View the package source record on GitHub. [combined/macvim.yml](https://github.com/mxcl/pkgdb/blob/main/combined/macvim.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
