Tuesday, February 14, 2012

Re: Is there a way of moving in the jump list without using ctrl_i?

On 02/14/12 11:58, skeept wrote:
> in my vimrc I have
> map<tab> <c-w>
>
> This is very convenient for all the window commands (like close, go to
> previous, go to top, etc...)
> but it seems that this prevents me from using the ctrl_i command. So
> if I type ctrl_o then I cannot go
> back just by typing ctrl_i.
> Is there another way of using this feature?

I'd do them as :nnoremaps to prevent recursive definitions:

:nnoremap <tab> <c-w>
:nnoremap <f4> <c-i>

which will make <f4> give you the original behavior of control+I.
Adjust to your favorite mapping target.

-tim

--
You received this message from the "vim_use" 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

No comments: