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
- Host: GitHub
- URL: https://github.com/andys8/vim-emulation
- Owner: andys8
- License: mit
- Created: 2019-04-13T20:32:53.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2021-05-08T19:31:01.000Z (about 5 years ago)
- Last Synced: 2025-04-10T05:51:10.549Z (about 1 year ago)
- Topics: elm, vim
- Language: Elm
- Homepage: https://andys8.github.io/vim-emulation/
- Size: 2.3 MB
- Stars: 20
- Watchers: 2
- Forks: 2
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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)

## 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)