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?
About this post
- Posted
- Archived
- Score
- 15 · 100% up
- Kind
- Text
- ID
- dc7fca
12 comments
https://wiki.archlinux.org/index.php/Arch_Build_System
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.
Thanks for taking the time and explaining all of this, by far pacman architects though about everything!
Deleted before we saved it.
If possible you could try using gvim, since it has the clientserver feature enabled by default.
That's a great solution, thanks.
And for learning proposes, is it dificult to recopilé the vim arch version?
No, just clone the pkgbuild from the arch website, edit the file to your liking and run makepkg.