You are on page 1of 9

1.

vi filename

2. i: Insert the text before current cursor location


3. view Filename
4. a: insert the text after the current cursor location
5. k command

Before

After

6. j command
Before
After

7. l command
before

After
8. h command
Before

After

9. X command
Before

After
10. r command
before

After

11. dd command
before

After
12 yy command: copy the line

13 p command: paste the line

You might also like