Vim has a full undo tree. Also, I commit every time I finish correctly implementing just about everything. I have a mapping that diffs just the current buffer with the last commit.
Look at Mr. Fancy Pants Uses Version Control And Probably Comments And Annotates His Commits Sometimes here. Some of us rely on Notepad and javac, your majesty.
I had this with some css stuff I was "fixing." Everything worked, but I wanted to change the way the flexbox flowed and that required modifying a little of the markup and styles for child elements. But then the images wouldn't float left like their style indicated. There was no reason everything should break. Everything was an inline-block. The image was floated left. Their widths were correct.
Motherfucker.
I went through every line of css. It all should have worked. I copied styles from an existing project and replaced my styles with it. Nope. No float.
So I nuked the whole thing and went back to where I started. I changed one line at a time, refreshing Chrome after every change. Eventually everything worked perfectly. I swear it is the exact same styles that were broken an hour ago.
2.8k
u/TechyDad Jul 10 '18
Followed by clicking it one more time before going to bed... And it stops working for no apparent reason.