rita
A text editor.
Supports some vi keybindings. Should feel like home for people who use vi, vim or neo-vim.
Install
git clone https://github.com/daniel/rita
cd rita
make install
Usage
rita open empty buffer
rita file.txt open a file
Modes
| Normal | default, press Esc to return |
| Insert | i a o O |
| Command | : / |
Movement
| h j k l | move cursor (also arrow keys) |
| w | next word |
| b | previous word |
| 0 | start of line |
| $ | end of line |
| gg | top of file |
| ggg | center of file |
| G | bottom of file |
Editing
| i | insert before cursor |
| a | append after cursor |
| I | insert at start of line |
| A | append at end of line |
| o | open line below |
| O | open line above |
| x | delete character |
| dd | delete line |
| yy | yank (copy) line |
| p | paste after |
| P | paste before |
Scrolling
| Ctrl+E | scroll down one line |
| Ctrl+Y | scroll up one line |
| Ctrl+D | scroll down half page |
| Ctrl+U | scroll up half page |
| Ctrl+F | scroll down full page |
| Ctrl+B | scroll up full page |
| mouse wheel / touchpad | scroll |
File Operations
| Ctrl+P | fuzzy file finder (save first) |
| :w | save |
| :q | quit |
| :q! | force quit |
| :wq | save and quit |
| :e file | open file |
| /pattern | search forward |
Size Comparison
- nano: 297 KB
- rita: 2.6 MB
- vim: 3.8 MB
- neovim: 15 MB