The editor from the 'Build your own text editor in C' series, but re-written in C++.
- Clone this repository locally
git clone git@github.com:nrednav/kilo.git
- Build the project
cd kilo
make
- Run the editor
# Edit a new file
./kilo
# Edit an existing file
./kilo <insert-filename>
- Edit
- To move the cursor, use the arrow keys
- To insert a new line, use
Enter
- To delete a character, use
Backspace
,Delete
orCtrl + h
- To jump to the end of a line, use the
End
key - To jump to the beginning of a line, use the
Home
key - To scroll the file down or up by an entire page length, use the
PageDown
orPageUp
key
- Search
- To initiate a search prompt, use
Ctrl + f
- Type the word you're looking for and hit
Enter
to perform the search - Alternatively, to cancel the search use
Esc
- To cycle through the search results:
- Jump to next occurence =
Ctrl + n
- Jump to previous occurence =
Ctrl + p
- Jump to next occurence =
- To initiate a search prompt, use
- Save
- To save any changes you make to a file, use
Ctrl + s
- You will be prompted to enter a filename if you did not open a file at the start
- To cancel saving, use
Esc
- To save any changes you make to a file, use
- Quit
- To quit the editor, use
Ctrl + q
- Then hit
y
orn
to confirm or cancel respectively
- To quit the editor, use