vim: improved the script snippet, now supports bzr too and global values