vim-emulation

Vim emulation in the browser

MIT License

Stars
19

Vim Emulation

Vim implemented in Elm. Give it a try!

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