Difference between revisions of "Emacs-HowToCopyFromOneFileToAnother"
From Coder Merlin
(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...") |
m (Added formatting) |
||
Line 1: | Line 1: | ||
== How to Copy from One File to Another == | == How to Copy from One File to Another == | ||
* Open the target file (the file that you want to copy TO). | * Open the target file (the file that you want to copy TO). | ||
* Split the window in emacs with CTRL | * Split the window in emacs with {{SpecialKey|CTRL|X}}, {{Key|2}}. | ||
* Open the source file (the file that you want to copy FROM, with CTRL | * Open the source file (the file that you want to copy FROM, with {{SpecialKey|CTRL|X}}, {{SpecialKey|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 | * Then, copy normally by marking with {{SpecialKey|CTRL|SPACE}} and then moving to the other end of the region and pressing {{SpecialKey|ALT|W}}. | ||
* Now, move to the other window with CTRL | * Now, move to the other window with {{SpecialKey|CTRL|X}}, o. Move the cursor to where you want to paste the text, and then press {{SpecialKey|CTRL|Y}}. | ||
* After you've completed the copy, you can close all other windows with CTRL | * After you've completed the copy, you can close all other windows with {{SpecialKey|CTRL|X}}, {{Key|1}}. |
Latest revision as of 23:34, 5 December 2019
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.