Add usage and change description
This commit is contained in:
parent
6d6f1e2524
commit
5b0b67b5eb
2 changed files with 27 additions and 2 deletions
28
README.md
28
README.md
|
@ -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
1
vip.c
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue