-
Notifications
You must be signed in to change notification settings - Fork 74
Vim Mode
Zep supports some simple vim commands - just enough for a vim user to get around the editor without the frustration of having to use a modeless editor. Since Zep is designed to be used inside an ImGui layer primarily, it is useful for a game developer who wants to use Vim commands in their in-game editor.
// Command counts
hjkl Motions
. dot command
TAB
w,W,e,E,ge,gE,b,B Word motions
u,CTRL+r Undo, Redo
i,I,a,A Insert mode (pending undo/redo fix)
DELETE/BACKSPACE in insert and normal mode; match vim
Command status bar
Arrow keys
'$'
'jk' to insert mode
gg Jump to end
G Jump to beginning
'J' join
D
dd,d$,x Delete line, to end of line, chars
'v' + 'x'/'d'
'y'
'p'/'P'
a-z&a-Z, 0->9, _ " registers
'$'
'yy'
cc
c$ Change to end of line
C
S, s, with visual mode
^
'O', 'o'
'V' (linewise v)
Y, D, linewise yank/paste
d[a]w/e Delete words
di})]"'
c[a]w/e Change word
ci})]"'
TODO: % Jump
f (find) / next, previous
/Searching
visual-repeat (dot command should use last visual selection range)
'R'/'r' overstrike