Skip to content

Zibgame/Zim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Zim

Minimal Vim‑inspired terminal text editor written in C++.


📸 Example

Zim Example


✨ Features

  • ⚡ Modal editing (Normal / Insert modes)
  • 🧭 Real‑time cursor navigation
  • 📊 Status bar with current mode display
  • 📄 Line‑based editing engine
  • 🎨 ANSI color support for the status bar
  • 🖥️ Automatic terminal size detection

🚀 Installation

git clone https://github.com/Zibgame/Zim.git
cd Zim
make

▶️ Usage

./zim

Keyboard controls

Key Action
h Move cursor left
j Move cursor down
k Move cursor up
l Move cursor right
i Enter Insert mode
Esc Return to Normal mode
Enter Create a new line
Backspace Delete character
q Quit the editor

🎛 Customization

  • Status bar colors can be changed using ANSI color codes in draw_status_bar()
  • Future support planned for a .zimrc configuration file
  • Designed to allow custom themes and editor behavior

🛠 Project Goals

  • Build a lightweight modal editor similar to Vim
  • Understand terminal rendering and ANSI escape sequences
  • Implement a minimal line‑based text editing engine

🤝 Contributing

Pull requests are welcome.

Please keep the code:

  • clean
  • readable
  • consistent with the existing style

📜 License

MIT License


⭐ If you like the project, consider giving it a star on GitHub!

About

Vim-inspired minimal terminal text editor in C++ with modal editing, and real-time cursor navigation.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors