When bufname contains |file-pattern|, setbufvar() might raise E16 Invalid Range error. Use setbufvar("", ...) instead of setbufvar(bufname_string, ...).
Should make vim startup a bit faster. Thanks to kien for the idea. Refs #33.