RepositoryC
MA

martanne/vis

A vi-like editor based on Plan 9's structural regular expressions

5.3kstars
303forks
144issues
5views

Featured achievements

The project's latest awards

1
TINIX TRENDING·Topic: console-application

#1 Repository of the week

1
TINIX TRENDING·Topic: structural-regex

#1 Repository of the week

1
TINIX TRENDING·Topic: modal-editing

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

RepositoryVim Script
neovim/neovim

Vim-fork focused on extensibility and usability

104.0k
Nov 27, 2026
RepositoryC++
mawww/kakoune

mawww's experiment for a better code editor

11.2k
Nov 25, 2026
RepositoryVim Script
vim/vim

The official Vim repository

41.4k
Nov 30, 2026
RepositoryLua
lite-xl/lite-xl

A lightweight text editor written in Lua

6.6k
Nov 29, 2026
RepositoryC
obsproject/obs-studio

OBS Studio - Free and open source software for live streaming and screen recording

80.4k
Nov 29, 2026
RepositoryC
raysan5/raylib

A simple and easy-to-use library to enjoy videogames programming

35.8k
Nov 25, 2026
RepositoryC
coolsnowwolf/lede

Lean's LEDE source

31.6k
Nov 28, 2026
RepositoryPython
kovidgoyal/kitty

If you live in the terminal, kitty is made for you! Cross-platform, fast, feature-rich, GPU based.

36.0k
Dec 2, 2026
RepositoryLua
NvChad/NvChad

Blazing fast Neovim framework providing solid defaults and a beautiful UI, enhancing your neovim experience.

28.6k
Oct 24, 2026