Skip to content

NorSomething/nim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 

Repository files navigation

Nim

A minimal terminal-based text editor written in C using raw mode and ANSI escape sequences.

This project is primarily a learning exercise to understand:

  • Terminal raw mode (termios)
  • Low-level input handling
  • Cursor movement with escape codes
  • Basic file I/O
  • Simple editor state management

It currently supports basic typing, navigation, saving, and quitting directly inside the terminal.

Super Basic Demo

2026-02-02.22-24-58.mp4

Features

  • Raw terminal input (no enter required)
  • Arrow key cursor movement
  • Create new files or open existing ones
  • Save using Ctrl + O
  • Quit using Ctrl + Q
  • Simple status bar (row, column, filename, last saved time)

Installation

Requirements

  • Linux (or any POSIX system)
  • GCC or Clang

After cloning the repo, Usage

gcc main.c -o m
./m

You can also use cli arguments to open file directly

gcc main.c -o m
./m filename.txt

ToDo

  • Proper Cursor Movements
  • 2D Buffer
  • Scrolling Support
  • Better Status Bar
  • Basic Search

About

Basic Text Editor written in C using rawmode for terminal input (termios).

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages