Learn Docker With My Newest Course

Dive into Docker takes you from "What is Docker?" to confidently applying Docker to your own projects. It's packed with best practices and examples. Start Learning Docker →

Reselect Your Last Selection in Vim with gv


This is handy in case you forgot to copy something or decide you want to select a few more lines.

Quick Jump: Demo Video

This behavior is built into Vim. After making your selection you can move around your file and hit gv to jump back and select what you had previously.

Demo Video


  • 0:09 – Reselecting the last selection using gv
  • 0:36 – I use this a lot to reselect HTML snippets

How often do you do this? Let me know below!

Never Miss a Tip, Trick or Tutorial

Like you, I'm super protective of my inbox, so don't worry about getting spammed. You can expect a few emails per month (at most), and you can 1-click unsubscribe at any time. See what else you'll get too.