Added a scratch buffer for vim. Also some matlab fixes.