2 ms·
When I was implementing a toy editor I read the neovim source code and to no one’s surprise the modes are just long switch statements - when in mode M and input
by jeofken 5y ago
When I was implementing a toy editor I read the neovim source code and to no one’s surprise the modes are just long switch statements - when in mode M and input key is K, do some action. It’s a simple program and your mental model is probably close to the vim source code!
For learning a lot of cool stuff about implementing my best book is The Craft Of Text Editing
http://www.finseth.com/craft/ http://www.finseth.com/craft/