Inspiration

BetterThanVim (BTV) is deeply inspired by the infamous Unix standard editor (ed).

What it does

BTV is a command-based command line text editor, rather than a visual text editor. You can specifics on the commands here and see a demonstration in the video above.

When you open or create a file using BTV, you are prompted for commands. You can use commands like a, A, e to insert or edit the file, commands like <n>, +, -, ^, $ to navigate, r to figure out where you are, . or .<n> to figure out what you're looking at, y to yank (copy), x to cut, p or P to paste, w to save and q to quit.

How I built it

I programmed it in Rust, mainly using the standard library and a few crates.

Challenges I ran into

I have never created a program in Rust until now, and I came in mostly blind to using it. Rust is probably the most difficult systems language to learn; it's far much more difficult/complex than C, although it is safer when it comes to memory allocation/management.

Accomplishments that I'm proud of

Completing this program in Rust without giving up and rewriting the whole thing in C.

What I learned

Mainly Rust knowledge, and also ed knowledge.

What's next for BetterThanVim

More commands. 18 is hardly enough. Also needs some internal cleanup.

Built With

Share this project:

Updates