TWP Editor is a lightweight, Vim-like text editor for the Windows terminal. It offers a simple yet effective interface for text editing with keyboard shortcuts inspired by Vim.
- Vim-inspired modal editing (Normal and Insert modes)
- File operations (create, open, save)
- Startup menu with ASCII art banner
- Full file path support
- Status bar showing editor state and filename
- Smooth rendering using double-buffering system
- Scrolling navigation for large files
- Page navigation for quick movement through documents
- Windows operating system
- GCC compiler
- Make (optional, for using the Makefile)
-
Clone or download the repository:
git clone [repository_url]
-
Navigate to the project directory:
cd twp-editor
-
Compile using the included Makefile:
make
Or manually compile with GCC:
gcc src/*.c -o twp.exe
-
Launch without arguments to show the startup menu:
twp.exe
-
Open a file directly:
twp.exe path/to/your/file.txt
h
- Move cursor leftj
- Move cursor downk
- Move cursor upl
- Move cursor rightu
- Page up (scroll up one screen)d
- Page down (scroll down one screen)g
- Jump to the beginning of the fileG
- Jump to the end of the filei
- Enter Insert mode:
- Enter command mode
- Arrow keys - Navigate
- Type to insert text
- Backspace - Delete character
- Enter - Insert new line
- Esc - Return to Normal mode
:w
- Save file:q
- Quit:o
- Open a file:new
- Create new file
This project is released under the MIT License.