Vim text editor supports Zig
I didn't know!!! Scarthgap has the Vim text editor available via PKGget (compiled in OE). I have overlooked it, as always thought that it is a terminal-mode application, like its predecessor 'vi'. However, it also has a gtk3 GUI, when started with "gvim" or "vim -g".
I installed it, and discovered that it supports Zig syntax highlighting out-of-the-box. Snapshot:
Here is my earlier post, looking around for text editors that support Zig:
- Zig development in Scarthgap devx — October 27, 2024
I also mentioned that "Dude the Builder" uses NeoVim; this is one of many "successors" to Vim. Though, the original Vim remains a very active project. Vim homepage:
This is the Zig support, that is already builtin to Vim:
https://github.com/ziglang/zig.vim
I will be very happy to remove VSCode from the 'devx' SFS. VSCode
is a PET package, so anyone can install it with PKGget if they
wish.
Vim is quite small, so might put it into easy.sfs, so offering an
alternative to Geany. Just need to tweak a few things -- like, it
currently creates menu entries in the "Utility"
category.
Note, I will likely post some simple getting-started tutorials
for Zig soon.
Tags: easy