Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

After doing ', g g' (spacemacs/jump-to-definition) how do I get back?

Tags:

spacemacs

I did

, g g

to jump to the definition of same symbol under the point. Now I want to return to my previous file/position.

Is there a binding for that?

What is the binding in a default spacemacs installation?

like image 849
typetetris Avatar asked Oct 08 '17 07:10

typetetris


1 Answers

You can use either '' (Two single quotes) in normal mode or using ctrl + o.

In the first case ' means 'go to mark' and the second ' is the temporary mark register that automatically sets after any jump.

In the second case you can use to jump back step-by-step (So you can jump into previous buffer and all of the motions there)

like image 129
IC_ Avatar answered Oct 14 '22 10:10

IC_