a vim like text editor
C Lua C++ Makefile Shell
Latest commit 4a4f9e0 Mar 25, 2017 @martanne build: set version to 0.3
Failed to load latest commit information.
lua lexers: fix perl pattern for horrible regex lines Mar 24, 2017
man man: fix last mandoc linting warning Mar 17, 2017
test @ 9e0e157 test: update Mar 22, 2017
.appveyor.yml appveyor: let Cygwin handle the environment variable Feb 18, 2017
.codecov.yml build: try to avoid failed commit status when coverage slightly drops Nov 30, 2016
.gitignore vis-digraph: add utility to handle digraphs Jan 27, 2017
.gitmodules Fix vis-test git submodule integration Apr 19, 2016
.luacheckrc build: add luacheck make target Mar 3, 2017
.travis.yml travis: add non-curses builds to test matrix Mar 15, 2017
GNUmakefile build: include dvtm terminfo entries in standalone builds Mar 16, 2017
LICENSE Update year number to 2017 Feb 1, 2017
Makefile build: set version to 0.3 Mar 25, 2017
README.md Fix README markdown and improve contribution section Mar 15, 2017
array.c array: implement array_remove Dec 27, 2016
array.h array: implement array_remove Dec 27, 2016
buffer.c buffer: fix integer overflow issue Feb 20, 2017
buffer.h buffer: add buffer_grow Feb 20, 2017
config.def.h vis: remove word and file name completion from editor core Mar 5, 2017
configure build: clarify lpeg related configure option Mar 15, 2017
libutf.c vis: cleanup keyboard handling implementation Oct 5, 2015
libutf.h vis: introduce vis_keys_utf8 Feb 10, 2017
main.c vis: fix wrap around with <C-n> Mar 22, 2017
map.c map: remove unused function Feb 2, 2017
map.h map: remove unused function Feb 2, 2017
register.c buffer: add buffer_grow Feb 20, 2017
register.h vis: move syntax highlighting to pure Lua code May 21, 2016
ring-buffer.c Add rudimentary support for jump list (CTRL+{O,I}) Jan 1, 2015
ring-buffer.h Add rudimentary support for jump list (CTRL+{O,I}) Jan 1, 2015
sam.c Move :set horizon option implementaiton to lua Mar 19, 2017
sam.h sam: disallow destructive commands in groups and looping constructs Jan 26, 2017
text-motions.c vis: make sure g_ does not cross line boundaries Mar 19, 2017
text-motions.h vis: remove motion and text objects related to C functions Feb 15, 2017
text-objects.c text-object: remove C implementation of file name text object Mar 5, 2017
text-objects.h text-object: remove C implementation of file name text object Mar 5, 2017
text-regex-tre.c text: clean up iterator semantics Feb 8, 2017
text-regex.c vis: cleanup regex header inclusion Jan 16, 2017
text-regex.h text-regex: add regex backend based on libtre Jan 19, 2017
text-util.c Fix various issues reported by coverity scan Oct 5, 2016
text-util.h Add utility function to calculate display width of a string May 24, 2016
text.c text: use proper open(2) flags when saving inplace Mar 22, 2017
text.h text: add iterator accessor function which translates \r\n to \n Feb 25, 2017
ui-terminal-curses.c ui: try to fix job control issues with certain shells Mar 22, 2017
ui-terminal-vt100.c ui: try to fix job control issues with certain shells Mar 22, 2017
ui-terminal.c ui: try to fix job control issues with certain shells Mar 22, 2017
ui-terminal.h Restructure display code Mar 14, 2017
ui.h ui: further cleanup display code Mar 16, 2017
util.h util: add overflow safe unsigned addition function Feb 20, 2017
view.c view: rename view_dirty to view_invalidate Mar 22, 2017
view.h view: rename view_dirty to view_invalidate Mar 22, 2017
vis-clipboard vis-clipboard: fix detection of macOS systems Dec 1, 2016
vis-cmds.c vis: reject invalid option names Mar 21, 2017
vis-complete vis-complete: allow custom input not matching any completion candidate Oct 28, 2016
vis-core.h vis: add infrastructure for user specified operators Mar 19, 2017
vis-digraph.c vis-digraph: properly initialize local variable Feb 8, 2017
vis-lua.c Merge branch 'master' of https://github.com/joshaw/vis Mar 25, 2017
vis-lua.h vis-lua: removed unused function declaration Mar 24, 2017
vis-menu.c vis-menu: check read(2) return value Feb 8, 2017
vis-modes.c vis: remove unnecessary status bar redraw Mar 16, 2017
vis-motions.c vis: make `cw` and `cW` more vim compatible Mar 21, 2017
vis-open [vis-open] Don't use realpath(1). May 28, 2016
vis-operators.c vis: do not indent empty lines when right shifting with `>` Mar 22, 2017
vis-prompt.c vis: make sure prompt starts newline terminated Feb 8, 2017
vis-single.sh single: include tools vis-{clipboard,complete,menu,open} Jan 16, 2017
vis-text-objects.c vis: remove motion and text objects related to C functions Feb 15, 2017
vis.c vis: properly redraw status bar of windows displaying internal files Mar 24, 2017
vis.h vis: fix syntax highlighting glitches with split windows Mar 22, 2017


Vis a vim-like text editor

Linux Build Status Cygwin Build Status Coverity Scan Build Status codecov #vis-editor on freenode

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.

As an 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 encourage experimentation. There also exists 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. 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.


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.

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