Coder Social home page Coder Social logo

vim.js's Introduction

Vim.js : JavaScript port of Vim

A Tool/Toy for Non-Beginners

by Lu Wang

Status

    | Firefox | Chrome | IE

--------|---------|--------|-------- Speed | Normal | Best | Good Feature | Best | Normal | Good

Usable and almost stable, but be careful and do :w a lot! In case it crashes, files can still be accessible through the emscripten FS API, e.g. FS.readFile

Vim.js Features

  • Persistent ~/.vimrc
  • Execute JavaScript from Vim.js
  • Read local files
  • Read files from Dropbox

Run :e $VIM/vimrc for more detail.

Vim Features

The online demo is built with the small feature set (--with-features=small), with also a few from the normal set. Run :version to check details. (--with-features=normal is too large and too slow for online usage.)

Some features can be requested via pull requests, some are not intended to be included. Please discuss with me first before you work on a PR.

Instructions for hackers

  • Prepare the dependencies:
    • emscripten
    • node.js
    • streamline.js
    • GCC & cproto (maybe) — Sometimes you need to run make proto when you see errors about 'undeclared variables/functions/structs'
  • Get yourself familiar with everything above and also:
    • source code of vim
    • JavaScript, and also HTML/CSS
  • Set up the EM_DIR environment variable
  • Set up JOB_COUNT in build.sh
  • Uncomment the last few lines in build.sh
  • Run build.sh

The building process might take more than 3GB memory.

Development

Patches are welcome and wanted for

  • Wrapping async functions — learn more
  • Multi-browser/platform support
  • Stability improvements
  • UI improvements
  • Other stuffs in TODO

If you want to work on other features to be merged, please file an issue and discuss with me first.

Do not override vim.js or build.sh!

Contact

Lu Wang coolwanglu(a)gmail.com — please do not expect a prompt response.

License

Read LICENSE

vim.js's People

Contributors

coolwanglu avatar

Stargazers

 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.