A vi-like editor based on Plan 9's structural regular expressions
Find a file
2026-05-24 08:33:44 -06:00
.builds ci: freebsd: use lua 5.3 like the others 2023-08-12 17:26:27 -06:00
.github ci: update to checkout v6 to shut up warning 2026-04-27 08:23:33 -06:00
doc doc/Makefile: add an empty clean target... 2025-12-02 23:36:56 +01:00
lua lua/lexers: update to scintillua 6.7 (#1354) 2026-05-20 15:03:06 +02:00
man ui: implement numberwidth option 2026-05-14 05:56:49 -06:00
test vis-menu: replace strtoul with internal procedure 2026-05-23 10:30:24 -06:00
.codecov.yml ci: disable codecov commit status updates 2020-02-25 12:30:54 +01:00
.editorconfig add a basic .editorconfig file 2022-11-29 21:37:51 +01:00
.gitignore make vis a single file build 2025-12-16 11:28:44 -07:00
.luacheckrc build: add luacheck make target 2017-03-03 23:04:27 +01:00
buffer.c move all standard library includes into util.h 2025-12-22 09:13:47 -07:00
buffer.h move all standard library includes into util.h 2025-12-22 09:13:47 -07:00
CHANGELOG.md doc: fix Markdown in CHANGELOG.md 2025-06-13 08:19:26 -06:00
config.def.h use <vis-prompt-show> instead of ':' 2025-06-13 06:11:58 -06:00
configure configure: fall back to brew for lpeg detection on macOS 2026-04-24 05:59:13 -06:00
Dockerfile build: update alpine in docker build to version 3.23 2025-12-06 05:48:01 -07:00
event-basic.c move all standard library includes into util.h 2025-12-22 09:13:47 -07:00
GNUmakefile Merge branch 'patch-1' of https://github.com/erf/vis 2020-01-16 19:01:21 +01:00
LICENSE replace oversized libutf with smaller version 2026-01-06 16:52:56 -07:00
main.c cleanup compiler warnings 2026-05-17 06:17:29 -06:00
Makefile vis-menu: replace strtoul with internal procedure 2026-05-23 10:30:24 -06:00
map.c move all standard library includes into util.h 2025-12-22 09:13:47 -07:00
map.h delete functions which were exposed as unused 2025-12-16 11:28:44 -07:00
README.md doc: Add link for the development dicussion email list to README.md 2024-10-26 10:09:33 +02:00
sam.c core: replace memchr with internal memory_scan_forward 2026-05-23 10:30:57 -06:00
sam.h mark all functions in headers with VIS_EXPORT or VIS_INTERNAL 2025-12-16 11:28:44 -07:00
text-common.c introduce intrusive dynamic array implementation 2026-01-17 05:50:16 -07:00
text-io.c text: pass Fileranges by value where they are meant to be const 2026-05-09 14:30:16 -06:00
text-iterator.c core: replace memchr with internal memory_scan_forward 2026-05-23 10:30:57 -06:00
text-motions.c core: replace memchr with internal memory_scan_forward 2026-05-23 10:30:57 -06:00
text-objects.c text: pass Fileranges by value where they are meant to be const 2026-05-09 14:30:16 -06:00
text-regex-tre.c text: merge text headers into text.h 2026-03-01 07:34:13 -07:00
text-regex.c core: replace memchr with internal memory_scan_forward 2026-05-23 10:30:57 -06:00
text-util.c text: pass Fileranges by value where they are meant to be const 2026-05-09 14:30:16 -06:00
text.c core: replace memchr with internal memory_scan_forward 2026-05-23 10:30:57 -06:00
text.h text: pass Fileranges by value where they are meant to be const 2026-05-09 14:30:16 -06:00
ui-terminal-curses.c ui: merge ui_terminal_init/ui_init & ui_term_backend_init/ui_backend_init 2026-05-21 17:19:40 -06:00
ui-terminal-vt100.c ui: merge ui_terminal_init/ui_init & ui_term_backend_init/ui_backend_init 2026-05-21 17:19:40 -06:00
ui-terminal.c vis: store escape delay internally 2026-05-24 08:06:50 -06:00
ui.h vis: store escape delay internally 2026-05-24 08:06:50 -06:00
util.c vis-menu: replace strtoul with internal procedure 2026-05-23 10:30:24 -06:00
util.h ui: perform style conversion without strdup 2026-05-23 08:59:17 -06:00
view.c core: remove second linked list of windows 2026-05-18 18:07:56 -06:00
view.h text: pass Fileranges by value where they are meant to be const 2026-05-09 14:30:16 -06:00
vis-clipboard vis-clipboard: add support for termux 2026-04-24 05:54:10 -06:00
vis-cmds.c sam: remove use of strtol/strtoull 2026-05-23 10:30:57 -06:00
vis-complete scripts: make option listing more consistent 2025-01-06 07:38:01 -07:00
vis-core.h vis: store escape delay internally 2026-05-24 08:06:50 -06:00
vis-digraph.c vis: fix 2 typoes 2026-05-06 09:32:51 +02:00
vis-lua.c ui: perform style conversion without strdup 2026-05-23 08:59:17 -06:00
vis-lua.h vis-lua: use str8 for path adding 2026-05-09 17:46:35 -06:00
vis-marks.c text: pass Fileranges by value where they are meant to be const 2026-05-09 14:30:16 -06:00
vis-menu.c vis-menu: replace strtoul with internal procedure 2026-05-23 10:30:24 -06:00
vis-modes.c text: merge text headers into text.h 2026-03-01 07:34:13 -07:00
vis-motions.c text: pass Fileranges by value where they are meant to be const 2026-05-09 14:30:16 -06:00
vis-open scripts: make option listing more consistent 2025-01-06 07:38:01 -07:00
vis-operators.c text: pass Fileranges by value where they are meant to be const 2026-05-09 14:30:16 -06:00
vis-options.c vis: store escape delay internally 2026-05-24 08:06:50 -06:00
vis-prompt.c core: remove second linked list of windows 2026-05-18 18:07:56 -06:00
vis-registers.c text: pass Fileranges by value where they are meant to be const 2026-05-09 14:30:16 -06:00
vis-single.c vis-single: fix implicit declaration of 'mkdtemp' and 'setenv' 2025-12-31 05:28:03 -07:00
vis-subprocess.c move all standard library includes into util.h 2025-12-22 09:13:47 -07:00
vis-subprocess.h move all standard library includes into util.h 2025-12-22 09:13:47 -07:00
vis-text-objects.c text: merge text headers into text.h 2026-03-01 07:34:13 -07:00
vis.c vis: set default escape delay during init 2026-05-24 08:33:44 -06:00
vis.h core: remove second linked list of windows 2026-05-18 18:07:56 -06:00

Vis - Combining Modal Editing with Structural Regular Expressions

Development discussion builds.sr.ht status Coverity Scan Build Status codecov Documentation Status #vis-editor on libera

Vis aims to be a modern, legacy-free, simple yet efficient editor, combining the strengths of both vi(m) and sam.

It extends vi's modal editing with built-in support for multiple cursors/selections and combines it with sam's structural regular expression based command language.

A universal editor, it has decent Unicode support and should cope with arbitrary files, including large, binary or single-line ones.

Efficient syntax highlighting is provided using Parsing Expression Grammars, which can be conveniently expressed using Lua in the form of LPeg.

The editor core is written in a reasonable amount of clean (your mileage may vary), modern and legacy-free C code, enabling it to run in resource-constrained environments. The implementation should be easy to hack on and encourages experimentation. There is also a Lua API for in-process extensions.

Vis strives to be simple and focuses on its core task: efficient text management. Clipboard and digraph handling as well as a fuzzy file open dialog are all provided by independent utilities. There exist plans to use a client/server architecture, delegating window management to your windowing system or favorite terminal multiplexer.

The intention is not to be bug-for-bug compatible with vi(m). Instead,
we aim to provide more powerful editing features based on an elegant design and clean implementation.

vis demo

Build instructions

In order to build vis you will need a C99 compiler, a POSIX.1-2008 compatible environment as well as:

  • libtermkey
  • curses (recommended)
  • Lua >= 5.2 (optional)
  • LPeg >= 0.12 (optional runtime dependency required for syntax highlighting)
  • TRE (optional for more memory efficient regex search)

Assuming these dependencies are met, execute:

$ ./configure && make && sudo make install

By default the configure script will try to auto detect support for Lua using pkg-config(1). See configure --help for a list of supported options. You can also manually tweak the generated config.mk file.

Or simply use one of the distribution provided packages.

Documentation

End user documentation can be found in the vis(1) manual page and the Wiki. Read the FAQ for common questions. Learn about some differences compared to sam(1) and vim(1), respectively.

C API as well as Lua API documentation is also available.

Non Goals

Some features which will not be implemented:

  • tabs / multiple workspaces / advanced window management
  • file and directory browser
  • support for file archives (tar, zip, ...)
  • support for network protocols (ftp, http, ssh ...)
  • encryption
  • compression
  • GUIs (neither x11, motif, gtk, win32 ...) although the codebase should make it easy to add them
  • VimL
  • right-to-left text
  • ex mode, we have more elegant structural regexp
  • diff mode
  • vimgrep
  • internal spell checker
  • lots of compile time configurable features / #ifdef mess

How to help?

There are plenty of ways to contribute, below are a few ideas:

Checkout the Developer Overview to get started and do not hesitate to ask question in the #vis-editor IRC channel on libera (join via your browser).