VI Editor Commands
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ For vi this is how you can select all text and write it into a new file: shift v -- visual mode shift g -- jump to eof "*y -- yank select text :e my_new_file -- create a new file "*p -- paste into a new file Other way Shift +v press down arrow to select all and then just use up arrow to unselect the line you need "*y - copy the lines u selected Open a new file "*p -- to paste the input Moving to the top of the line , Moving to the end of the line Press ^ to move the cursor to the start of the current line. Press $ to move the cursor to the end of the current line. VI Editing commands i – Insert at cursor (goes into insert mode) a – Write after cursor (goes into insert mode) A – Write at the end of line (goes into insert mode) ESC – Terminate insert mode u – Undo last c...