Skip to main content
2 of 4
updated tags, cleaned up title, highlighted the question
Dan
  • 33.4k
  • 7
  • 106
  • 171

How to switch back and forth between two locations in a buffer

Sometimes I find myself frequently alternating between two functions that I am editing in conjunction with each other. In these situations, it is tedious and painful to keep on doing a C-s <functionname> to switch to the other function and then to find the exact place I was editing previously.

How do I set markers and then jump back and forth between two locations in the buffer with ease?