fixes vim and bash save features

mostly logic errors in how the save features worked
adds vim undo history function

adds skeletal for saving vim info and swap as well