Emacs-HowToCopyFromOneFileToAnother
From Coder Merlin
Revision as of 14:34, 25 October 2018 by Chukwuemeka-tinashe (talk | contribs) (Created page with "== How to Copy from One File to Another == * Open the target file (the file that you want to copy TO). * Split the window in emacs with CTRL-X, 2. * Open the source file (the...")
Within these castle walls be forged Mavens of Computer Science ...
— Merlin, The Coder
How to Copy from One File to Another[edit]
- Open the target file (the file that you want to copy TO).
- Split the window in emacs with CTRL-X, 2.
- Open the source file (the file that you want to copy FROM, with CTRL-X, CTRL-F). Press ENTER and then navigate to the source file. Remember that ".." (two dots) will navigate you UP in the directory hierarchy.
- Then, copy normally by marking with CTRL-SPACE and then moving to the other end of the region and pressing ALT-W.
- Now, move to the other window with CTRL-X, o. Move the cursor to where you want to paste the text, and then press CTRL-Y.
- After you've completed the copy, you can close all other windows with CTRL-X, 1.