1

In normal Firefox, I can open the previous history item in a new tab by middle clicking the back button in the location bar.

Does Vimperator have a keyboard shortcut to do this?

3 Answers 3

1

There are a couple of ways to do this.

New tab - then history

One is to open a tab, then go back in history:

  • :tabopen Enter to open a tab.

  • :history Space to open the interactive history list. Then you can Tab to the entry you want and hit Enter to open it.

This history pane is also searchable, so you can start typing the something that matches the history entry you want to go back to to find it more easily.

History - then new tab

Another way is to trigger the history navigation and then load the entry you want in a tab.

  • :history Enter to open the full history list.

  • j k to scroll etc.

  • When you can see what you want ;t fires up the new tab overlay. You can type to filter as usual with following a link and press Enter to load the match, or filter down until only one remains.

EDIT:

Duplicate tab - then go back

After some thought, I realised the following is probably closest to what is being asked:

  • :tabduplicate Enter to create a new duplicate tab of the current tab.

  • :back Space to open the tab's back history. Then you can Tab to the entry you want. If you know you want the most recent entry, you can just do :back Enter.

3
  • This is still not exactly what I had in mind because vimperators :history is shared between tabs unlike the back button in the location bar but it is good enough for my browsing habits.
    – Niautanor
    Dec 5, 2016 at 10:50
  • I've added a 3rd option which I think is closest to what you're looking for - hope it helps.
    – jamesc
    Dec 5, 2016 at 15:33
  • 1
    The third option is exactly what I wanted. Thank you very much.
    – Niautanor
    Dec 7, 2016 at 16:16
0

try pressing u
or use the undo function

1
  • That only restores the last closed tab. I want to create a new tab with the last history item of the current tab.
    – Niautanor
    Dec 2, 2016 at 13:51
0

:backt and :forwardt commands

I provided a full solution for this here (both for Pentadactyl and Vimperator). You can download the Vimperator source from this gist. Sourcing it will provide you with :backt and :forwardt commands, which are also accessible via the bindings gh and gl.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.