Vis is a vi-like terminal editor combining modal editing with sam-style structural regular expressions and multi-cursor support.
Overview
Vis is designed as a modern, legacy-free text editor that merges vi’s modal editing with structural regular expression commands inspired by sam and Plan 9. It supports multiple cursors and selections alongside a command language for structural edits.
The editor aims to handle arbitrary files, including large, binary, or single-line content, with Unicode support. Syntax highlighting uses parsing expression grammars expressed in Lua via LPeg. A Lua API allows in-process extensions, while clipboard handling and fuzzy file open are delegated to external utilities.
The core is implemented in C for constrained environments. Vis intentionally avoids bug-for-bug vi compatibility in favor of structural regexp features and a simpler architecture. Documentation includes a manual page, wiki material, and comparisons to sam and vim.
Distribution packages are mentioned as an alternative to building locally. The design favors a client-server direction for window management through the user’s terminal multiplexer or windowing system rather than built-in GUI or tab management.
Key features
- Modal vi-style editing
- Structural regular expressions
- Multiple cursors and selections
- LPeg-based syntax highlighting
- Lua extension API
- Unicode text support
- Large and binary file handling
- External utility integrations
Use cases
- Terminal-based text editing
- Structural search and replace
- Lightweight remote editing
- Hackable editor customization