3 ms·
Oh! Yes! There are two ways to do that: c-t: will bring you back to the previous location before jumping. this is the right way to do it if you jumped from ano
by farresito 10y ago
Oh! Yes! There are two ways to do that:
c-t: will bring you back to the previous location before jumping. this is the right way to do it if you jumped from another file by tag
c-o: if you run commands like gg to go to the top of the file, c-o also tracks this as a previous location. useful to know if you need to check something at the top of the file and you want to go back to where you were before pressing gg. also tracks tags, but of course if you jump to a tag, then gg, then press c-o it will bring you back to the position before pressing gg instead of the file you jumped from for the tag (more often than not im a victim of using c-o with tags)