Undo, redo, line numbers
This commit is contained in:
34
README.md
34
README.md
@@ -8,6 +8,8 @@ ve is a vi(m) like editor which runs inside your terminal, using ncurses. At pre
|
||||
* Insert mode works in the way you'd expect
|
||||
* Scroll through large files
|
||||
* Saving and quitting in the same way as Vim
|
||||
* Delimiter/action-based undo
|
||||
* Line number counter
|
||||
|
||||
## Building
|
||||
|
||||
@@ -15,4 +17,36 @@ ve is a vi(m) like editor which runs inside your terminal, using ncurses. At pre
|
||||
g++ src/main.cpp -Lncurses -o ve
|
||||
```
|
||||
|
||||
## Keybinds
|
||||
|
||||
### Normal Mode
|
||||
|
||||
**Moving around:** Use `h` to go left, `j` to go up, `k` to go down, and `l` top go right (or arrow keys if you're boring).
|
||||
|
||||
**Enter Insert mode:** Use `i` to enter insert mode
|
||||
|
||||
**Enter Command mode:** Use `:` to enter command mode
|
||||
|
||||
**Undo/Redo:** Press `u` to undo a mistake, and `r` to redo.
|
||||
|
||||
### Insert Mode
|
||||
|
||||
**Typing:** Type things in just like in any other editor.
|
||||
|
||||
**Moving around:** Use the arrow keys
|
||||
|
||||
**Enter Normal mode:** Press `ESC`.
|
||||
|
||||
### Command Mode
|
||||
|
||||
There are currently three commands for command mode:
|
||||
|
||||
`q`: Quits the editor, unless you have unsaved changes.
|
||||
|
||||
`q!`: Force quits the editor.
|
||||
|
||||
`w`: Saves changes to the file. If a filename is specified, changes are saved to that file.
|
||||
|
||||
`wq`: Saves changes to the file, and quits the editor. If a filename is specified, changes are saved to that file.
|
||||
|
||||
Press enter to submit your command.
|
||||
|
||||
Reference in New Issue
Block a user