Food For Thought 3
You have to:
(note: I know, some of these functions can be done in other different ways in both editors. But for the sake of the exercise, please stick with this table)
To.. | vi | pico |
move Forward a character | (space) | CTRL-F |
move Backward a character | CTRL-H | CTRL-B |
move to the Previous line | - | CTRL-P |
move to the Next line | + | CTRL-N |
move to the beginning of the current line | 0 | CTRL-A |
move to the End of the current line | $ | CTRL-E |
move forward a page of text | CTRL-F | CTRL-V |
move backward a page of text | CTRL-B | CTRL-Y |
Search for text | / | CTRL-W |
Delete the character at the cursor position | x | CTRL-D |
Cut line | dd | CTRL-K |
Paste last cut text inserting it at the current cursor position | p | CTRL-U |
Insert an external file at the current cursor position | :-r | CTRL-R |
Output the current buffer to a file, saving it | :-w | CTRL-O |
Exit, saving buffer | :-wq | CTRL-X |