What do they do, and how do you use them? Any tips / tricks would also be appreciated.
1 Answer
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.
-
18
-
8It might be worth nothing that
<C-o>
,<C-O
, and<C-i>
<C-I>
seem to have identical results. Saves your ring finger from having to hold the Shift key. Sep 21, 2016 at 14:48 -
18@J.M.Janzen It's deeper than that. Most shells don't differentiate between "lowercase" and "capital" control characters, so Vim, which was designed to run in a terminal shell, doesn't either. In most shells, it couldn't if it tried. May 10, 2017 at 2:55