vim-unimpaired icon indicating copy to clipboard operation
vim-unimpaired copied to clipboard

[j and ]j for jumping between jumps

Open oguzbilgic opened this issue 5 years ago • 4 comments

Would these mappings make sense for jumping between jumps?

nnoremap [j <C-o>
nnoremap ]j <C-i>

oguzbilgic avatar Oct 20 '19 09:10 oguzbilgic

I think it doesn’t add much value to duplicate built-in maps.

I map [j and ]j to jump to previous or next buffer from the jumplist. So it is similar to [b/]b but in MRU order which I find much more useful.

odnoletkov avatar Oct 20 '19 10:10 odnoletkov

I map [j and ]j to jump to previous or next buffer from the jumplist.

I was thinking about that as well. Would you mind sharing how?

oguzbilgic avatar Oct 20 '19 11:10 oguzbilgic

https://github.com/odnoletkov/dotfiles/blob/ba319018c881527149b80e23a0278afab91af228/.vim/plugin/jumpbuffer.vim

(requires Vim 8.1)

odnoletkov avatar Oct 20 '19 15:10 odnoletkov

Thanks @odnoletkov . @tpope , thank you for all your wonderful plugins! Any chance you'd add this specific shortcut to unimpaired? It makes total sense to me, but I'm not a vim expert, what do you think?

dnaaun avatar Nov 08 '20 00:11 dnaaun