You need a script, is it beyond your skill level, please create a link to the function you want to be able to use in Vim. Make sure it isn't already on the scripts page at vim.org (http://vim.sourceforge.net/scripts/index.php)