Applications such as Tmux and Termite allow interaction with the contents of the terminal through vi-like bindings for actions such as searching and copying.
Is there any way of opening the contents of the terminal in a text editor, so that real vim can be used for such actions? Note that I am interested in opening the entire contents of the terminal in a text editor, not just the command currently being edited.
Running a terminal inside [neo]vim gives a solution close to what I would like, the main disadvantage being that it requires the foresight to have opened the terminal in vim instead of directly in my usual terminal application. Also, the vim terminal introduces linebreaks for reflowing of text, which I would prefer not to have.
I would be particularly interested in solutions that are independent of the terminal application, though maybe that is overly optimistic?
script
command in the second answer to get a sample of what you could get. – Vincent Nivoliers Oct 05 '18 at 15:22