add pastetoggle and write read-only file for vim