reg.vim doesn't need to be a vim file
fix error checking