prevent history loss on buffer change
update vim, clean up