by rstuart4133 · 2y ago · 0 comments
I'm a long time vim user. I watched someone use neovim, started drooling over the plugins they were using and decided to give it a go. As I understood it neovim was born because Moolenaar didn't want to give up on vim's scripting language. It something you might like to replace. I don't know why he was so attached to it. When neovim made LUA it's scripting language it gave rise to all these plugins, which is what I was drooling over.
Within about 15 minutes of using neovim I hit my first bug. Split screen diff's weren't rendering correctly. In fact they rendered so badly it was impossible to use. Then I hit a few more. That reminded me of one thing I am in awe of in Moolenaar. Vim is a big piece of software, yet I don't ever recall hitting one bug in the underlying engine. He was one mother of a programmer, truly a giant among us.
And vim has bugs too, I have a list of nags that just aren’t going to be fixed on vim that were fixed on neovim.
Imho both are just fine.
- couldn’t re-'columns' itself on window resize
- couldn’t be used as an explorer’s “open with” action (due to nvim-qt/nvim argument forwarding nonsense)
- another outstanding bug/non-feature that I don’t remember now, but it was just stupid.
Okay, I thought, give it some time. I gave it some time every two years since 2018-ish. Guess what.And tbh, Lua, really? I mean, it’s better than vimscript, but having such opportunity and choosing Lua is just… no words. It wasn’t even unclear future, the whole point of neovim was making IDE out of it. This is a “typed lang with a rich ecosystem” class of task, not “embedded scripting with no batteries and barely working pm”. I bet that people who actually write plugins wish it was typescript or python multiple times a day.
It’s the fastest scripting language and it’s easy to embed it into the application.
The ‘batteries’ can be found in `:h lua.txt`, they’ve grown significantly each release, and you can even use a package manager.
The ‘batteries’ can be found in `:h lua.txt`
https://neovim.io/doc/user/lua.html
Reinventing iteration, vim.NIL, empty dict, utf-8, etc. Sorry for the snark, but I'm not surprised in the slightest and have no other emotion for that. They could have that and a whole world of packages and tools out of the box by using virtually any language except Lua.