An open API service indexing awesome lists of open source software.

https://github.com/andys8/vim-emulation

Vim emulation in the browser
https://github.com/andys8/vim-emulation

elm vim

Last synced: 11 months ago
JSON representation

Vim emulation in the browser

Awesome Lists containing this project

README

          

# Vim Emulation

[Vim](https://www.vim.org) implemented in [Elm](https://elm-lang.org).
[Give it a try!](https://andys8.github.io/vim-emulation)

![Screenshot](screenshot-vim-in-elm.png)

## Features

### Basic Movement

- h l k j character left, right; line up, down
- w W word/WORD right
- b B word/WORD left
- e E end of word/WORD right
- 0 beginning of line
- ^ first character of line
- $ last character of line
- G last line
- gg first line

### Insertion & replace

- i a insert before, after cursor
- I A insert at beginning, end of line
- o O open a new line below, above the current line
- << >> shift left, right
- S cc change current line
- ciw change text in word

### Deletion

- x Delete delete character under cursor
- X delete character before cursor
- dd delete current line
- diw delete text in word

### Copying

- yy Y yank current line
- yiw yank in word
- p put register after cursor position
- P put register before cursor position

### Ex commands

- :q! quit and discard changes
- :w [file] save file
- :x [file] save file and exit
- :[n] jump to an absolute line number `[n]`
- :bd clear buffer

### Undoing, repeating & registers

- . repeat last change

## Further information

- [Vim documentation: help](http://vimdoc.sourceforge.net/htmldoc)
- [Vim Quick Reference Card](http://users.ece.utexas.edu/~adnan/vimqrc.html)