Code Monkey home page Code Monkey logo

vim_like-editor's Introduction

Ștefan MĂGIRESCU

VIM Editor

Basic VIM-like editor with basic operations such as:

  • insert mode
  • view mode
  • goto line
  • delete line
  • goto character
  • delete character
  • replace word
  • delete word
  • replace word everywhere
  • delete word everywhere
  • save
  • quit

-> Undo and redo are implemented by using two stacks. The input characters are saved as dynamic list elements and all intrusive operations work by cutting, extracting sequences and optionally, gluing other sequences in their places.

-> Every operation applies right away, after having been read from the input file. That makes the undo operation quite challenging (keep in mind many of the variables are passed as pointers, or references to pointers etc.)

-> If the editor quits before the text being saved, it obviously, returns to the state that was last saved, or empty, if never saved.

-> Input is in editor.in file and the program outputs to editor.out.

For more on how the input should be, check description.pdf or head over to input folder and take a look at the tests.

For more on how the functions work, check comments.

vim_like-editor's People

Contributors

magynon avatar

Watchers

 avatar

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.