Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

vim YouCompleteMe. command to return to where you came from?

Tags:

vim

After YcmCompleter GoToDefinition.

How to go back where I came from ??

like image 500
David Avatar asked Sep 26 '14 03:09

David


1 Answers

You should go through the vimtutor again. One of the first things it talks about is using Ctrl - ] to follow a tag, and Ctrl - o to go back.

For what it's worth, Ctrl - i goes forward again. So for example, you might gg to the top of a document, hit Ctrl - o (bringing you back to where you started), and then hit Ctrl - i (bringing you back to the top of the document).

Try h: jump-motions, or h: CTRL-O for more.

like image 182
davidlowryduda Avatar answered Nov 05 '22 02:11

davidlowryduda