Clone of the jQuery plugin from http://www.vim.org/scripts/script.php?script_id=2416 (v0.5.2)