How can I undo all changes since opening a buffer? I imagine there may be some form of :earlier that does this.
:earlier
Update: Many are suggesting
In vim 8.1+ as well as in neovim, you can just use :u0
:u0