How do Vim's Control-O and Control-I work?

VimKeyboard Shortcuts

Vim Problem Overview


What do they do, and how do you use them? Any tips / tricks would also be appreciated.

Vim Solutions


Solution 1 - Vim

In insert mode, Ctrl-o escapes user to do one normal-mode command, and then return to the insert mode. The same effect can be achieved by <ESC>ing to normal mode, doing the single command and then entering back to insert mode. Ctrl-i is simply a <Tab> in insert mode.

In normal mode, Ctrl-o and Ctrl-i jump user through their "jump list", a list of places where your cursor has been to. The jumplist can be used with the quickfix feature, for example to quickly enter to a line of code containing errors.

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
QuestionChetanView Question on Stackoverflow
Solution 1 - Vimmike3996View Answer on Stackoverflow