I use Midnight Commander (MC) editor over putty to edit files
I want to know how to copy text from one file, close it then open another file and paste it?
If it is not possible with Midnight Commander, is there another easy way to copy and paste specific text from different files?
I would do it like this:
NOTE: There are other environment related methods, that could be more conventional nowadays, but the above one does not depend on any desktop environment related clipboard, (terminal emulator features, putty, Xorg, etc.). This is a pure mcedit feature which works everywhere.
IF you're using putty in either Xorg or Windows (i.e terminal within a gui) , it's possible to use the "conventional" right-click copy/paste behavior while in mc. Hold the shift key while you mark/copy.
(hold) Shift + Select with mouse (copies to clipboard)
To paste in windows:
To paste in another file in PuTTY/MC:
Shift + Ins
Putty has ability to copy-paste. In mcedit, hold Shift and select by mouse
According to help in MC:
Ctrl+Insert copies to the mcedit.clip, and Shift+Insert pastes from mcedit.clip.
It doesn't work for me, by some reason, but by pressing F9 you get a menu,
Edit > Copy to clipfile - worked fine.