Editing Two Files: 1. vi file1 file2 [enter] 2. :n [enter] 3. :e# [enter] 4. /search_for_word [enter] 5. cw type_in_word [enter] 6. :w [enter] 7. go to step 3 until entire document is corrected Searching For a Word and Replacing It: 1. :%s/search_word/replace_word/g [enter] Copying a Line From File1 to File2: 1. move cursor to a line 2. "ayy (double quotes) 3. :n file2 [enter] 4. "ap (p = after cursor, P = before cursor) 5. :w [enter] Copying a Block of Text From File1 to File2: 1. move cursor to a line 2. ma (mark text to buffer a) 3. move cursor to another line 4. mb (mark text to buffer b) 5. :'a,'b y c [enter] 6. :e file2 [enter] (edit file2) 7. "cp 8. :w [enter] 9. :e# [enter] (edit file1) Copying a Block of Text Within File1: 1. move cursor to a line 2. ma (mark text to buffer a) 3. move cursor to another line 4. mb (mark text to buffer b) 5. move cursor to line where text is to be copied 6. :'a,'b co . [enter] (copies a to b lines to where cursor is) Moving a Block of Text Within File1: 1. move cursor to a line 2. ma (mark text to buffer a) 3. move cursor to another line 4. mb (mark text to buffer b) 5. move cursor to line where text is to be moved 6. :'a,'b mo . [enter] (moves a to b lines to where cursor is) Copying Lines of Text From File1 to File2: 1. move cursor to a line 2. "ayy ("a4yy pulls/yanks 4 lines to buffer a) 3. :n file2 [enter] 4. "ap 5. :w [enter] 6. :e# [enter]