On , I learnt ...
That Vimium has shortcuts for following pagination links
Until today, I had Vimium disabled for Github as I believed Github’s keyboard shortcuts where useful enough to warrant losing Vimium’s.
Particularly:
n
andp
— navigate to the next or parent commit when reviewing a pull request. Very convenient for code review.Y
— expand the current URL to its canonical, permalink. Essential for sharing URLs to file content (as otherwise the page content can change over time).
But I discovered Vimium can be enabled for Github without losing the above functionality.
-
Vimium provides
[[
and]]
to navigate to the next and previous commit when reviewing a pull request. These shadow the quickfix navigation mappings fromvim-unimpaired
. More broadly, these work with various forms of “previous” or “next” pagination links. -
Github’s
Y
shortcut can still be accessed by entering “insert mode” first. So useiY
instead.