Make sure the necessary tools and dependencies are installed
sudo apt-get install build-essential curl devscripts quilt
sudo apt-get build-dep vim-gtk=2:7.4.488-7
I don't want to clutter up my home directory
mkdir ~/build
cd ~/build
Use the source!
apt-get source vim-gtk=2:7.4.488-7
cd vim-7.4.488/
Setup some variables for quilt
export QUILT_PATCHES=debian/patches
export QUILT_REFRESH_ARGS="-p ab --no-timestamps --no-index"
Add the patch to the Debian package (I made a shortened URL for convenience)
quilt import -P debian/vim_ascii-ligatures.patch <( curl -Ls 'https://git.io/vKQZ8' )
quilt push
Time to make the packages
debuild -i -us -uc
Now there should be a bunch of packages
cd ~/build
ls -l vim*.deb | sed -re "/ $USER $USER/s///"
-rw-r--r-- 1 952326 Jul 25 18:15 vim_7.4.488-7_amd64.deb -rw-r--r-- 1 1158164 Jul 25 18:15 vim-athena_7.4.488-7_amd64.deb -rw-r--r-- 1 184484 Jul 25 18:15 vim-common_7.4.488-7_amd64.deb -rw-r--r-- 1 6500878 Jul 25 18:15 vim-dbg_7.4.488-7_amd64.deb -rw-r--r-- 1 1756082 Jul 25 18:15 vim-doc_7.4.488-7_all.deb -rw-r--r-- 1 1167676 Jul 25 18:15 vim-gnome_7.4.488-7_amd64.deb -rw-r--r-- 1 1164584 Jul 25 18:15 vim-gtk_7.4.488-7_amd64.deb -rw-r--r-- 1 149328 Jul 25 18:14 vim-gui-common_7.4.488-7_all.deb -rw-r--r-- 1 90178 Jul 25 18:15 vim-lesstif_7.4.488-7_all.deb -rw-r--r-- 1 1049398 Jul 25 18:15 vim-nox_7.4.488-7_amd64.deb -rw-r--r-- 1 5030394 Jul 25 18:14 vim-runtime_7.4.488-7_all.deb -rw-r--r-- 1 417538 Jul 25 18:15 vim-tiny_7.4.488-7_amd64.deb
Now you can install the packages (I prefer vim-gtk — your tastes may vary)
sudo dpkg -i vim-common_7.4.488-7_amd64.deb \
vim-gtk_7.4.488-7_amd64.deb \
vim-gui-common_7.4.488-7_all.deb vim-runtime_7.4.488-7_all.deb