Vim omni completion for Launchpad bugs

I hacked together a little timesaver for developers this morning: omni completion for Launchpad bugs in Vim’s debchangelog mode. To use it, install vim 7.1-138+1ubuntu3 once it hits the mirrors, open up a debian/changelog file, type “LP: #”, and hit Ctrl-X Ctrl-O. It’ll think for a while and then give you a list of all the bugs open in Launchpad against the package in question, from which you can select to insert the bug number into your changelog.

Here’s a screenshot to make it clearer:

screenshot

Thanks to Stefano Zacchiroli for doing the same for Debian bugs back in July.