8000 GitHub - MetaMars2/TWP: TWP Editor is a lightweight, Vim-like text editor for the Windows terminal.
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

MetaMars2/TWP

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TWP Editor

TWP Editor Banner

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.

Features

  • 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

Installation

Requirements

  • Windows operating system
  • GCC compiler
  • Make (optional, for using the Makefile)

Build Instructions

  1. Clone or download the repository:

    git clone [repository_url]
  2. Navigate to the project directory:

    cd twp-editor
  3. Compile using the included Makefile:

    make

    Or manually compile with GCC:

    gcc src/*.c -o twp.exe

Usage

Starting the Editor

  • Launch without arguments to show the startup menu:

    twp.exe
  • Open a file directly:

    twp.exe path/to/your/file.txt

Keyboard Controls

Normal Mode

  • h - Move cursor left
  • j - Move cursor down
  • k - Move cursor up
  • l - Move cursor right
  • u - Page up (scroll up one screen)
  • d - Page down (scroll down one screen)
  • g - Jump to the beginning of the file
  • G - Jump to the end of the file
  • i - Enter Insert mode
  • : - Enter command mode

Insert Mode

  • Arrow keys - Navigate
  • Type to insert text
  • Backspace - Delete character
  • Enter - Insert new line
  • Esc - Return to Normal mode

Commands

  • :w - Save file
  • :q - Quit
  • :o - Open a file
  • :new - Create new file

License

This project is released under the MIT License.

About

TWP Editor is a lightweight, Vim-like text editor for the Windows terminal.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published
0