Skip to content
/ ced Public

The CED (Code EDitor) is a vim like text editor written in c with ncurses

License

Notifications You must be signed in to change notification settings

pielesju/ced

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CED (Code EDitor)

The CED (Code EDitor) is a vim like text editor written in c with ncurses. This is a personal learning project.

demo screenshot 0

Requirements

  • gcc
  • ncurses

How to install ncurses:

# gnu debian
sudo apt-get install libncurses5-dev libncursesw5-dev
# archlinux
sudo pacman -S ncurses

# (optional) add linting support for make lint
# gnu debian
sudo apt install cpplint
# archlinux
sudo pacman -S cpplint

Build

Compile

make

Clean

make clean

Lint

make lint

Usage

# open without file (opens a temporary file "untitled.txt")
$ ced
# open with file
$ ced [filename]

Modes

NORMAL mode

the NORMAL mode is the default

i  | switch to INSERT mode
h  | move left
j  | move down
k  | move up
l  | move right
gg | move to beginning of file
G  | move to end of file
dd | remove line
dw | remove word
x  | remove character
:  | open commandline

COMMAND mode

the COMMAND mode is accessed by pressing : in normal mode

q  | quit
w  | write
wq | write and quit

INSERT mode

TODO (not implemented yet)

About

The CED (Code EDitor) is a vim like text editor written in c with ncurses

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published