Coder Social home page Coder Social logo

mvi's Introduction

mvi

Minimal vi-like text editor in ~500 SLOC.

mvi is less advanced than svi.

Commands

:d        - delete line
:q        - quit
:q!       - force quit
:w [file] - write to file
h,j,k,l   - left, down, up, right
i         - insert mode
ESC       - normal mode

Dependencies

  • ncursesw (or ansicurses with -lansicurses and #include <ansicurses.h>)
  • libutf (another compatible libutf here)

Description

The editor is very minimal, so few commands are supported. Search, substitute, etc, should rather be in a fork.

mvi is fully functional.

mvi's People

Contributors

byllgrim avatar

Stargazers

Stian Gudmundsen Høiland avatar bianxianyang avatar Stephen Wall avatar  avatar Nandakishore Santhi avatar Bocke avatar Jeffrey H. Johnson avatar Alexandr Savca avatar Nick Barth avatar ns avatar Scott J avatar Frank Braun avatar Charles avatar

Watchers

James Cloos avatar  avatar

Forkers

tuyenhv seipy

mvi's Issues

Some issues

Hello,

Congrats for your work, that's exactly what I was looking for.

I need to allow users to edit a file without being able to edit something else than the file I passed as parameter.

vim has a lot of ways to do that (:e :w ) plus all restrictions can be bypassed.

With mvi it's not possible to escape to shell also that's good :)

I notice two issues though:

crontab -l | mvi -

doesn't work as characters are printed in a loop after output of the result of the command before the pipe. It's easy to use a temporary file though.

There's no replace (r and/or R in vim) and it is only possible to insert, you cannot delete a character, that's definitely missing.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.