3

Is there any way I could use Vimscript to go through the list of jumps Ctrl-O, Ctrl-I and to pick the previous jump buffers/positions?

Any suggestion is greatly appreciated.

1 Answers1

4

You can execute the Ctrl-O and Ctrl-I commands within a script by using the :execute and :normal commands.

:execute "normal \<C-O>"
:execute "normal \<C-I>"

See

:help :normal
:help :execute
:help jump-motions
garyjohn
  • 36,494