Skip to content
/ vis Public
forked from martanne/vis

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

License

Notifications You must be signed in to change notification settings

Prodject/vis

Folders and files

NameName
Last commit message
Last commit date

Latest commit

6455498 · Jan 27, 2018
Jun 15, 2017
Jan 27, 2018
Dec 21, 2017
Jan 26, 2018
Feb 18, 2017
Nov 30, 2016
May 31, 2017
Apr 19, 2016
Mar 3, 2017
Mar 15, 2017
Dec 7, 2017
May 31, 2017
Feb 1, 2017
Jul 23, 2017
May 7, 2017
Jul 10, 2017
Jul 10, 2017
Apr 18, 2017
May 3, 2017
Jan 26, 2018
Jan 26, 2018
Oct 5, 2015
Feb 10, 2017
Dec 8, 2017
Feb 2, 2017
May 3, 2017
Jul 14, 2017
Apr 12, 2017
Apr 9, 2017
Apr 9, 2017
Apr 9, 2017
Mar 5, 2017
Jul 3, 2017
Jan 16, 2017
Jan 19, 2017
Jun 15, 2017
Jun 15, 2017
Jul 5, 2017
Jul 11, 2017
Apr 14, 2017
Mar 22, 2017
Jun 27, 2017
Mar 14, 2017
Jun 10, 2017
May 11, 2017
Jul 14, 2017
Jul 14, 2017
Dec 1, 2016
Jun 27, 2017
Oct 28, 2016
Jul 14, 2017
Feb 8, 2017
Nov 21, 2017
Mar 24, 2017
Jul 17, 2017
Feb 8, 2017
Jul 14, 2017
Dec 21, 2017
May 28, 2016
Dec 21, 2017
Jan 26, 2018
Jul 11, 2017
Jun 14, 2017
May 6, 2017
Jan 26, 2018
Sep 15, 2017

Repository files navigation

Vis a vim-like text editor

Linux Build Status Cygwin Build Status Coverity Scan Build Status codecov Documentation Status #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.

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

About

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C 54.1%
  • Lua 42.9%
  • C++ 1.9%
  • Other 1.1%