What is the difference between CTRL-T and CTRL-O in Vim?

VimKey Bindings

Vim Problem Overview


The documentation isn't especially clear—CTRL+T is to jump back in the tag stack, whereas CTRL+O is to jump back to the previous cursor position. What's the difference between CTRL+T and CTRL+O? They both appear to exhibit the same behavior.

Vim Solutions


Solution 1 - Vim

CTRL-T is working with tag stack

CTRL-O is working with jumplist

Tag stack and jumplist are different list in vim, but they might have same items when you jumping through tags (eg. using CTRL-])

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionMattyView Question on Stackoverflow
Solution 1 - Vimnumber5View Answer on Stackoverflow