SheatNoisette / vaed

A barebone V EDitor remplementation

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

vaed

V-Atto EDitor or VAed for short is a basic text editor written in V. This application was designed to be the most basic text editor possible, and is not intended to be a full-featured text editor. This program exists for the sole purpose of making a simple OS distribution with V-based userland programs only.

Supports:

  • Opening files
  • p: print the current line
  • d: delete the current line
  • a: append text after the current line
  • h: print help
  • H: Disable human-readable help mode
  • c: Edit the current line
  • q: quit
  • w: write to file
  • n: print the current line number and the line itself

Maybe in the future:

  • s: Search for a string
  • Basic QoF Improvements
  • Others ed commands

Demo

$ ./vaed
a
This is a line
.
w test.txt
15
q
$ cat test.txt
This is a line
$ ./vaed test.txt
15
n
1    This is a line
c
This is a edited line
w
24
q

Building

You need to have V installed. You can get it from here. To build, run v . in the directory or alternatively make if you have make installed.

License

This program is licensed under the MIT License. See the LICENSE file for more details.

About

A barebone V EDitor remplementation

License:MIT License


Languages

Language:V 98.1%Language:Makefile 1.9%