First Rust Project:Building a Vim-like model text editor in 1.5K lines of rust

66 points dijith 9 comments

https://preview.redd.it/injzwhkfx1te1.png?width=1920&format=png&auto=webp&s=e27ff2e4eb5b3948f2dfd267b7bb3ad85f881f8b

github-link

i wanted to do some project in rust . initially started implementing kilo tutorial in rust later choose to do it the vim way, i wanted to make it safe rust.

i have a question is using Rc<Refcell<>> pointer memory safe way of doing rust? for implementing multiple text buffers i changed the code from Rc<Refcell>> to hash map and a vector storing Hashmap keys.