Reputation: 43427
I am using Tab to toggle window focus via nnoremap <Tab> :wincmd w<CR>
.
This means I can no longer use <Tab>
to move forward in the jump list. (Often used in conjunction with <C-O>
whivh moves backward in jump list)
What is the colon command to jump next, so I can bind this to a less important key than its original key (Tab)?
Upvotes: 1
Views: 79
Reputation: 31419
You can just remap <tab>
to something else.
For example you could remap <Tab>
to `
nnoremap ` <Tab>
This will keep the original functionality of the tab for going forward in the jump list.
Upvotes: 3
Reputation: 196496
You should use <C-i>
, it's more consistent with than <Tab>
.
Anyway, <C-i>
is the same as <Tab>
so mapping <Tab>
effectively covers both <tab>
and <C-i>
. But that's irrelevant.
There's unfortunately no jumplist-related Ex command besides :jumps
so I'm afraid you'll need to write your own function/command or abandon that mapping.
Upvotes: 0