Add usage and change description

This commit is contained in:
Night Kaly 2024-11-14 13:39:30 +00:00
parent 6d6f1e2524
commit 5b0b67b5eb
Signed by: night0721
SSH key fingerprint: SHA256:B/hgVwUoBpx5vdNsXl9w8XwZljA9766uk6T4ubZp5HM
2 changed files with 27 additions and 2 deletions

View file

@ -1,12 +1,38 @@
# vip # vip
Small, fast and featureful vim-insipired text editor with strictly no dependency. Small, fast and featureful vim-insipired text editor with strictly no dependency.
It has colorful syntax highlighting and integrate with [ccc](https://github.com/night0721/ccc) for picking files
# Usage # Usage
```sh ```sh
vip -c file # Cat mode
vip file vip file
vip -c file
``` ```
```
LEFT/h: left
DOWN/j: down
UP/k: up
RIGHT/l: right
HOME/0: start of line
END/$: end of line
PAGEUP: jump up a page
PAGEDOWN: jump down a page
Backspace/ctrl+h/del: delete char
:w: save file
:q(!): quit
i: insert mode
v: visual mode
ESC: normal mode
gg: start of file
G: end of file
dd: delete line
/: search
O: create new line above cursor
o: create new line below cursor
pv: open ccc
```
# Dependencies # Dependencies
None None

1
vip.c
View file

@ -1112,7 +1112,6 @@ int main(int argc, char **argv)
} }
break; break;
case CTRL_KEY('l'):
case '\033': case '\033':
if (cur_editor->mode == INSERT) { if (cur_editor->mode == INSERT) {
move_xy(ARROW_LEFT); move_xy(ARROW_LEFT);