Skip to content

How to recopile the official arch Vim version with extra features

Hi there, I never compile any package before and don't even understand how it works. My goal is to have the --servername feature of vim added to the vim version provided by arch. For what I have searched some say it is better to download the source and compile oneself but I like to keep Pacman controlling updates and everything else.

What's the best approach in your opinion these days?

15 points10 comments
Open on Reddit
About this post
Posted
Archived
Score
15 · 100% up
Kind
Text
ID
dc7fca

Author

15
posts
74
comments
5
media
View profile

12 comments

22 points

To elaborate, you can use the Arch Build System. You get a copy of the existing PKGBUILD for Vim, set your desired config changes, and then you can use makepkg to build your package and and install it with pacman -U <package>

Now, I'd recommend changing the package name to something like vim-custom, and set it as providing vim and conflicting with vim. Then you can do your pacman -Syu updates per normal.

13 points

Thanks for taking the time and explaining all of this, by far pacman architects though about everything!

2 points

If possible you could try using gvim, since it has the clientserver feature enabled by default.

11 points

That's a great solution, thanks.

And for learning proposes, is it dificult to recopilé the vim arch version?

0 points

No, just clone the pkgbuild from the arch website, edit the file to your liking and run makepkg.

4 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.