vimrc: add Reg function and minor changes