Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 

Repository files navigation

Recreating Vim in nodejs

Although the name suggests recreation, this project doesnt actually recreates Vim. I've only tried to achieve some basic features similar to vim to understand how vim works. So, this project is my personal implementation of few features from vim. Since, this is a playground project, there are lots and lots of bugs & poorly written code, solving them felt a waste of time since it was about finding possibilities, that is why the code itself is an artifact which I'll never open.

However, this can be partially useful to someone who wonders how vim works.

Usage

  • Nodejs is required (^v16)
  • Just run, node index.js <local-file-name
  • Probably need iterm2 for better support

Features

  • Toggle insert & escape mode with ESC key
  • Support for vim motions h, j, k, & l, do not use arrows, haven't handle those.
  • Support for backspace, doesn't work with multiline
  • Although it supports : for command mode in normal mode, it only runs :q quit & for any other commands shows an error.
  • Support for absolute line-numbers
  • Support for footer airline bar

About

Recreating sth similar to vim with nodejs

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages