A simple text editor inspired by vim. Built in Rust. Just for fun!
$ cargo build --release
$ target/release/miv
The keybindings are vi-style, with some Spacemacs inspired ones.
h
j
k
l
to move left, down, up and right respectively.$
0
beginning and end of linegg
GG
beginning and end of filex
delete a single characterp
paste yanked contentyy
yank a linedd
delete a lineA
I
Move to the beginning/end of the line and switch to insert modea
i
switch to Insert modeR
switch to Replace mode:q
quit:w
save:wq
save and quit:new
make a new empty buffere file.txt
open the given file in a new bufferSPC bp
SPC bn
previous and next buffer
Like Vim, most commands can be repeat a number of time by prefixing them with a number. For instance, 15dd
will delete 15 lines.
- Handles only
LF
line ending. It will react weirdly with other types.