kshenoy
kshenoy

Reputation: 1816

Navigating jumplist in Vim with Tab mapped elsewhere

I've mapped the <Tab> key to switch buffers. However, as <Tab> is equivalent to <Ctrl-I>, I'm unable to navigate the jumplist.

Is there any way to map the jumplist navigation to some other key (say g, and g. for example) such that I can use <Tab> independently?

Upvotes: 7

Views: 862

Answers (1)

Randy Morris
Randy Morris

Reputation: 40927

Yes, just use nore when defining the maps.

nnoremap g, <C-o>
nnoremap g. <C-i>

The nore tells vim to not respect maps in the right hand side of the mapping.

Upvotes: 6

Related Questions