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.
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.
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