Vedit is a lightweight, terminal-based text editor written entirely in C. It features a modular architecture, modal editing, and directory navigation, all powered by VT100 escape sequences without any external UI libraries.
- Interactive Directory Exploration:
- Open any directory with
vedit <path>(e.g.,vedit .). - Navigate folders and open files directly using Enter.
- Supports parent directory (
..) navigation.
- Open any directory with
- Improved Buffer Management:
- Multi-Step Undo: Press
uin Normal Mode to revert up to 50 previous changes. - Line Numbers: Highlighting the current line for better focus.
- Modular Codebase: Split into logical components (rows, editing, undo, explorer, etc.) for easier maintenance.
- Multi-Step Undo: Press
- Enhanced Editing:
x: Delete character under the cursor.dd: Delete current line.- Full support for
Home,End,PageUp, andPageDown.
- Global Installation:
- Nix Support: Install globally using
nix profile install .. - Manual Option: Use
bash install.shto install to/usr/local/bin.
- Nix Support: Install globally using
NORMAL: Navigation (h, j, k, l), undo (u), and character deletion (x).INSERT: Standard text entry (ito enter).COMMAND: File operations and help (:to enter).HELP: Interactive help screen (:help).
nix profile install .bash install.sh- Run
nix developfor a complete dev shell. - Build with
make. - Run with
./bin/vedit [filename_or_directory].
:w- Save changes.:q- Quit (fails if unsaved changes exist).:wq- Save and quit.:q!- Force quit.:help- Open interactive help.