From 5b0b67b5eb4153c873943b1e9f69e612ed42945b Mon Sep 17 00:00:00 2001 From: night0721 Date: Thu, 14 Nov 2024 13:39:30 +0000 Subject: [PATCH] Add usage and change description --- README.md | 28 +++++++++++++++++++++++++++- vip.c | 1 - 2 files changed, 27 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index b67875e..fbb4129 100644 --- a/README.md +++ b/README.md @@ -1,12 +1,38 @@ # vip 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 ```sh +vip -c file # Cat mode 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 None diff --git a/vip.c b/vip.c index f67dfc0..64714ce 100644 --- a/vip.c +++ b/vip.c @@ -1112,7 +1112,6 @@ int main(int argc, char **argv) } break; - case CTRL_KEY('l'): case '\033': if (cur_editor->mode == INSERT) { move_xy(ARROW_LEFT);