(“The New Vim: The Excellent Editor in the New World.”)
It used to be said of VIM “For the first 12 months one wonders if they will ever be able to use it, but after the first 12 months, one wonders if they will ever be able to do without it”
But that was long ago, and time and tech have since moved on. My beloved VIM-GTK is looking more and more washed out because of the faded and obtuse icons of GTK3. Thanks a lot but I’m already feeling dated enough as it is!
A short history lesson
In the beginning, there was only VIM and EMACS, and the programmers were very polarized with endless arguments over which was the better editor.
Around 2007 a new type of editor was released, its name is “Sublime Text” and it entered beta on January 29, 2013, and was officially released to the public on September 13, 2017. This editor is very popular and gained many new adherents for its ‘dark mode’ gui, plugins and use of Python for easy scripting etc.
Not to be outdone, the Microsoft VS Code editor was first released in April 2015 and has gained significant popularity among developers for its extensive feature set and strong community support. VS Code integrates well with version control systems like Git, offers powerful debugging tools and a free Copilot AI integration for 80 accesses daily.
Both Sublime Text and VS Code have been in a competitive relationship since their inception, with developers often debating which is better suited for their needs.
Sublime Text is known for its lightweight nature and quick startup time, while VS Code offers a more feature-rich environment, albeit with a slightly longer startup time (because it’s a pig - ed).
But what happened to VIM and EMACS you ask ? Have they fallen behind in the race to keep up, have they finally been consigned to the dustbin of history by the new kids on the block, Sublime Text and VS Code ?
They haven’t changed much really. and are still as capable as ever, but there is a new kid on the block for VIM, and its name is “NEOVIM”.
Neovim is a fork of Vim that strives to improve the extensibility and maintainability of Vim. Some features of the fork include built-in Language Server Protocol (LSP) support, support for asynchronous I/O by using the C library libuv, and for Lua scripting by using luaJIT language interpreter, allowing both plugin scripting and running scripts in headless / batch mode. The project is free software and its source code is available on GitHub.
Neovim has the same configuration syntax as Vim prior to vim9script; thus the same configuration file can be used with both editors, although there are minor differences in details of options. If the added features of Neovim are not used, Neovim is compatible with almost all of Vim’s features.
The Neovim project was started in 2014, after a patch to Vim supporting multi-threading was rejected. Neovim had a successful fundraising in March 2014, supporting at least one full-time developer.
With the 0.5 release of Neovim on 2 July 2021, it gained built-in support for the LSP, Tree-sitter, and more complete Lua support – including the support for configuration scripts written in Lua instead of VimL.
This picture shows a Makefile with syntax highlighting (automatically installed by Neovim). The right window is the syntax tree of the Makefile created by the ‘TreeSitter’ parser used by Neovim for syntax highlighting. VIM by comparison just uses GREP for the same task.
That’s right! Neovim automatically adds syntax highlighting for every new filetype you edit, uses a sophisticated Parser just for exquisite syntax highlighting, uses the LSP (Language Server Protocol) to provide syntax completion, indentation and error checking for your favorite programming language, and a ton of other stuff.
It’s next level compared to poor old VIM.
Do yourself a favor if you do try Neovim and see this video first, install the ‘kickstarter’ as default Neovim lacks most facilities. It will make all the difference!
GitHub - nvim-lua/kickstart.nvim: A launch point for your personal nvim configuration
I’ve now completely switched from VIM to Neovim for my editing, I feel refreshed and a decade younger, watch out world!
Cheers,
Terry









