Hi Marcin,

On Thu, Aug 29, 2013 at 8:10 PM, Marcin Szamotulski <[email protected]> wrote:
> Recently I tried to make a user function for jumping through the jump
> list (by files), but it happens that there is no good interface for
> that.  For example CTRL-I could possibly be only with :normal! <c-i> but
> this does not work (even in vim -U NONE in the terminal, I have not
> tested this in the GUI though) and also using CTRL-V will not work since
> CTRL-V_CTRL-I produces a tab (this works with CTRL-O thought).
> I present here a very simple patch which introduce a vim function
> jump({count}).  :call jump(-5) will jump back in the jump list by
> 5 positions and :call jump(5) will jump forward five positions.

cheers. But for what it's worth, I don't see a big advantage in

        :call jump(-3)
        :call jump(1)

over

        :norm! 3^O
        :norm! 1^I

or

        :exe "norm! 3\<C-O>"
        :exe "norm! 1\<C-I>"

Just one more function to add to the list.

Best,
David

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Raspunde prin e-mail lui