vim filename.type
:1
- Go to the first line
:$
- Go to the last line
:number
- Go to the line that you want to go
i
- Enter the insert mode, you can type the text whatever you want
Esc
- back to command mode from insert mode
:w
- Make the text you type into the document
:q
- Quit the vim editor