Wednesday, August 10, 2022

Re: Building VIM 9 on Ubuntu

On Wed, Aug 10, 2022 at 01:10:43PM +0000, 'J S' via vim_use wrote:
> 1) Can someone give me a good list of all the dependencies and packages that I
> need to install on my Ubuntu 18.04 (Yes, I know that is old, but that also
> cannot be changed) system so that I can build a GTK3 version of Vim9? (N.B.
> This is the most important paragraph of this post; everything else is just
> information!)

This is the shell script I've been using to build a local vim on Ubuntu
since a long time ago (originally it was meant to build me a vim 7), so
it should work on 18.04:
https://github.com/mgedmin/scripts/blob/master/rebuild-vim

The list of packages is on line 60.

The list of configure arguments is on line 34. It builds a GTK3
version which works for me (although I mostly use terminal vim these
days for reasons).

It makes use of another script of mine,
https://github.com/mgedmin/scripts/blob/master/autoclone, which is just
there to make the experience smoother on a fresh install (it asks me
interactively whether I want to run git clone if ~/src/vim doesn't
already exist).

I run rebuild-vim --pull whenever I notice interesting features or
bugfixes posted to this list.

I then use a wrapper script to run vim right from the source tree,
skipping the 'make install' step because it's a bother:
https://github.com/mgedmin/scripts/blob/master/vim

All it does is export VIMRUNTIME=~/src/vim/runtime before execing
~/src/vim/vim. Later, of course, it grew extra features like
--vagrind so I can try to catch bugs without having to remember all the
magic arguments.

Marius Gedminas
--
QOTD:
"A child of 5 could understand this! Fetch me a child of 5."

--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/20220811062405.esho35efs7mlhyvh%40blynas.

No comments: