Vim.js Demo
Vim-style modal editing for standard HTML textareas and inputs — click below and try it out.
Quick Reference
Move
h j k l move cursor
w b next / prev word
0 $ line start / end
gg G file start / end
fchar jump to character
{ } prev / next paragraph
Enter Insert Mode
i before cursor / a after
I line start / A line end
o new line below
O new line above
Esc back to general mode
Delete & Change
x delete char
dd delete line
dw delete word
cc change line
C change to end of line
r replace single char
s substitute char
Copy, Paste & Undo
yy yank (copy) line
p paste after / P before
u undo
Ctrl+r redo
. repeat last edit
Search
/query search forward
n N next / prev match
* # search word at cursor
Visual Mode
v start selecting
y yank / d delete
c change selection
Vim.js supports many more bindings — text objects (diw, ci", da(),
WORD motions, count prefixes, and more. See the full list on
GitHub.