🚀 AOI Editor

A minimalist, terminal-based code editor optimized for competitive programming contests

AOI Editor Screenshot

✨ Features

⚡ Blazing Fast

No GUI overhead, pure terminal power with ncurses for maximum performance during competitions

🎨 Smart C++ Highlighting

50+ keywords with 6 color groups for optimal code readability

🔧 One-Key Compilation

F5 to compile & run - no more switching between windows

🚀 Zero Config

Works out of the box with sensible defaults for competitive programming

📦 <1MB Memory

Lightweight even on old machines and cloud instances

⌨️ Vim-like Navigation

Efficient keyboard shortcuts for rapid coding

⚡ Quick Start

# Clone & Build git clone https://github.com/mohamedboukerche22/AOI-IDE.git cd AOI-IDE make # Run with: sudo ./aoi solution.cpp
// Special optimizations for CP #include <bits/stdc++.h> // ← Detected and highlighted using namespace std; int main() { ios_base::sync_with_stdio(false); // ← Competitive pattern recognized cin.tie(nullptr); // Fast I/O template int n; cin >> n; cout << n*2 << '\n'; // ← '\n' highlighted over endl }
Get Started

📦 Installation

Linux/macOS

# Ubuntu/Debian sudo apt install g++ libncurses-dev # Fedora sudo dnf install gcc-c++ ncurses-devel # macOS (Homebrew) brew install ncurses

Compile & Run

g++ aoi.cpp -o aoi -lncurses ./aoi yourcode.cpp

🌐 Cross-Platform Architecture

⌨️ Key Bindings

F5
Compile and run current file immediately
F2
Save current file
Ctrl+X
Exit the editor (no prompt)
Arrow Keys
Navigate through code
// F5 executes exactly: // g++ current_file.cpp -o a.out && ./a.out // Then waits for you to press Enter to continue

🐧 Linux

Native ncurses support

🪟 Windows

Via PDCurses

🌐 Web

Emscripten-compiled WASM

📱 Mobile

Termux on Android