site  contact  subhomenews

Vim text editor supports Zig

October 28, 2024 — BarryK

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:

img1

Here is my earlier post, looking around for text editors that support Zig:

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:

https://www.vim.org/

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