feat: add Vim-style I and A and move redo to U

This commit is contained in:
Valdemar Lorenzen
2026-10-05 15:42:19 +02:00
parent ae1fe5223a
commit f81405a5ed
3 changed files with 68 additions and 13 deletions
+2 -1
View File
@@ -18,8 +18,9 @@ Without a file, vamp opens an unnamed buffer. A nonexistent file opens an empty
| Mode | Keys |
| --- | --- |
| Normal | `i` insert before cursor; `a` insert after cursor; `o`/`O` open line below/above |
| Normal | `I` (Shift+i) insert before the first nonblank, skipping spaces/tabs; `A` (Shift+a) insert at line end |
| Normal | `h`/`j`/`k`/`l` or arrows; `0`/`$` or Home/End |
| Normal | `x`/Delete delete; `u` undo; Ctrl-r redo; `:` enter command mode |
| Normal | `x`/Delete delete; `u` undo; `U` (Shift+u) redo; `:` enter command mode |
| Insert | Type, Enter, Tab, Backspace/Delete, arrows, Home/End; Esc returns to normal |
| Command | Enter executes; Backspace edits; Esc cancels |