Open the contents of terminal in editor

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
1
down vote

favorite












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?










share|improve this question























  • This is probably a duplicate since others have asked how to read text from the screen (and gotten no result).
    – Thomas Dickey
    Sep 10 at 20:14














up vote
1
down vote

favorite












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?










share|improve this question























  • This is probably a duplicate since others have asked how to read text from the screen (and gotten no result).
    – Thomas Dickey
    Sep 10 at 20:14












up vote
1
down vote

favorite









up vote
1
down vote

favorite











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?










share|improve this question















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?







terminal vim






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Sep 10 at 19:35

























asked Sep 10 at 15:46









Nonnus

404




404











  • This is probably a duplicate since others have asked how to read text from the screen (and gotten no result).
    – Thomas Dickey
    Sep 10 at 20:14
















  • This is probably a duplicate since others have asked how to read text from the screen (and gotten no result).
    – Thomas Dickey
    Sep 10 at 20:14















This is probably a duplicate since others have asked how to read text from the screen (and gotten no result).
– Thomas Dickey
Sep 10 at 20:14




This is probably a duplicate since others have asked how to read text from the screen (and gotten no result).
– Thomas Dickey
Sep 10 at 20:14















active

oldest

votes











Your Answer







StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "106"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
convertImagesToLinks: false,
noModals: false,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













 

draft saved


draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f468053%2fopen-the-contents-of-terminal-in-editor%23new-answer', 'question_page');

);

Post as a guest



































active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes















 

draft saved


draft discarded















































 


draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f468053%2fopen-the-contents-of-terminal-in-editor%23new-answer', 'question_page');

);

Post as a guest













































































Popular posts from this blog

Peggy Mitchell

Palaiologos

The Forum (Inglewood, California)