On 07:25 Wed 15 Feb     , skeept wrote:
> Hi all,
> 
> I have remapped <tab> and now <c-i> does not work as expected.
> I don't use the <c-i> command very often, but I do use it
> occasionally.
> I asked it there was a way of solving this in vim_use and it was
> suggested that
> I could do something like:
> 
>    :nnoremap <tab> <c-w>
>    :nnoremap <f4> <c-i>
> 
> I would prefer  to do something like `:ju -1` or `:ju 1` to move back
> in the list.
> Without argument it would just work like it does now.
> 
> Please consider implementing this if not to hard.
> 
> Thanks!
> 
> -- 
> 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 can easily make a your own command to get this:
(assuming you use the suggested ':nnoremap <f4> <c-i>')

    fun! Jump(...)
        let i = (a:0 >=1 ? a:1 : -1)
        if i<0
            for j in range(1,abs(i))
                exe "normal! \<c-o>" 
            endfor
        elseif i>0
            for j in range(1,abs(i))
                exe "normal \<f4>"
            endfor
        endif
    endfun

    command! -nargs=? Jump      :call Jump(<f-args>)


Note :Jump without argument will do the same as <c-o>.

Best,
Marcin

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

Raspunde prin e-mail lui