# 使用 Homebrew, MacPorts, Nix, pacman 安装 vimpager

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

## 安装

```sh
sudo av install brew:vimpager
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install vimpager
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install vimpager
```

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

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#vimpager
```

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

- pacman (92%):

```sh
sudo pacman -S vimpager
```

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

## 软件包事实

- **软件包键:** brew:vimpager
- **软件包管理器:** Homebrew
- **版本:** 2.06
- **来源摘要:** Use ViM as PAGER
- **主页:** <https://github.com/rkitover/vimpager>
- **仓库:** <https://github.com/rkitover/vimpager>
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- vimcat (别名)
- vimpager (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

vimpager is a small Unix-style pager wrapper that uses Vim as the interactive pager. Its README and vim.org script page describe it as a pager using less.vim with support for highlighted man pages and other features on Unix-like systems, Cygwin, and MSYS.

### 项目历史

The project is maintained by Rafael Kitover and distributed both through its GitHub repository and the historical vim.org scripts catalog as script 1723. The vimpager script identifies itself as a shell script for using Vim as PAGER and notes that it is based on Bram Moolenaar's less.sh.

### 采用历史

vimpager belongs to the long-running pattern of making terminal tools use a preferred editor's navigation model. Its vim.org script listing shows substantial historical script-catalog usage, and its packaging in systems such as Homebrew, MacPorts, Nix, and pacman reflects its role as a niche but recognizable tool for Vim-oriented shell users.

### 使用方式

Users set PAGER or aliases such as less to vimpager so command output, manual pages, and logs open inside a read-only Vim-driven pager. vimpager also ships vimcat, which uses Vim as a syntax-highlighting backend for cat-like output while falling back safely when output is not a terminal.

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

For package nerds, vimpager is a classic composability package: it turns the shell's generic PAGER convention into a Vim interface, preserving syntax highlighting, search, movement, and familiar Vim customization in places normally handled by less.

### Related projects

- vimpager is related to Vim's less.vim, the historical less.sh script, vimcat, and other Vim-as-pager plugins such as vim-pager.

### 来源

- <https://github.com/rkitover/vimpager>
- <https://github.com/rkitover/vimpager/blob/master/markdown/vimcat.md>
- <https://github.com/rkitover/vimpager/blob/master/vimpager>
- <https://www.vim.org/scripts/script.php?script_id=1723>


## 安全说明

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: ~/.vimpagerrc, ~/.vim/vimpagerrc
## 其他软件包管理器记录

- Nix - vimpager: normalized package name match | nixpkgs package indexes: vimpager from https://raw.githubusercontent.com/NixOS/nixpkgs/master/pkgs/top-level/all-packages.nix
- pacman - vimpager - 2.06-7: normalized package name match | Arch Linux sync databases: vimpager from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | A vim-based script to use as a PAGER. | https://www.vim.org/scripts/script.php?script_id=1723
- MacPorts - vimpager: normalized package name match | MacPorts ports tree: sysutils/vimpager/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## Combined YAML source

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