q!Bang Solutions Inc.‎ > ‎Blog‎ > ‎

Travel Back Vim Time

posted Apr 17, 2013, 3:26 PM by John Jones

      Cheesy title, I know. But this is one of the two features I was waiting for in Vim 7.0 (the other is tabs): go back in time. Everyone (especially programmers) has run into this situation at some point: you know you want to uncover the version you have that doesn’t cause the segmentation fault, and you know that’s the version from 45 minutes ago. I can already hear some people whisper “version control”, but not everyone has SVK, and not everyone commits regularly. Well, now you can travel back in time easily with Vim, just issue this command and you're back to the version from 45 minutes ago:

      :earlier 45m

      And to go forward in time, just do this:

      :later 30s


      You can manipulate time in Vim like Super Hiro, and you don't even have to make the funny face!