martanne/vis
A vi-like editor based on Plan 9's structural regular expressions
Featured achievements
The project's latest awards
#1 Repository of the week
#1 Repository of the week
#1 Repository of the week
🖋️ A Modern Vi-Like Editor Blending Modal Editing and Structural Regex
Vis merges vi's modal editing with Plan 9's structural regular expressions in a clean, hackable C codebase.
Vis is a modern, legacy-free text editor aiming to be simple yet efficient by combining the strengths of vi(m) and sam. Built in C with optional Lua support, it offers multiple cursors, structural regex commands, and efficient syntax highlighting via Parsing Expression Grammars. Designed for resource-constrained environments, Vis encourages experimentation and provides a Lua API for in-process extensions.
✨ Highlights
- Structural Regular Expressions: Built-in support for sam-style structural regex command language
- Modal Editing: Extends vi's modal editing with multiple cursors and selections
- Lua Extensibility: In-process Lua API for writing plugins and custom syntax highlighting
- Efficient Syntax Highlighting: Uses Parsing Expression Grammars via LPeg for fast highlighting
- Unicode Support: Decent Unicode handling for arbitrary files including binary or large files
- Clean C Implementation: Written in modern, legacy-free C for easy hacking and portability
- Universal Editor: Handles large, binary, and single-line files effectively
- Independent Utilities: Clipboard, digraphs, and fuzzy file open handled by separate tools
💡 Why it matters
Unlike traditional vi clones, Vis intentionally avoids bug-for-bug compatibility with vi(m) to focus on elegant design and clean implementation. It bridges the gap between vi's powerful modal editing and sam's structural regular expression approach, offering more expressive text manipulation capabilities.
The project emphasizes simplicity and core text management efficiency, deliberately excluding features like tabs, file browsers, network protocols, and GUI support. This minimalist philosophy keeps the codebase approachable and maintainable while delivering a robust editing experience.
#Vi #TextEditor #StructuralRegex #Lua #TiniX
Similar Projects
Discover other similar projects and AI models.
OBS Studio - Free and open source software for live streaming and screen recording
If you live in the terminal, kitty is made for you! Cross-platform, fast, feature-rich, GPU based.
Blazing fast Neovim framework providing solid defaults and a beautiful UI, enhancing your neovim experience.