Cursor Navigation in vim editor, set number in file |
Before we start to navigate in vi first we will set the number in vim to better understating.
To set number in vi1 - Press Key
2 - Press Colon ( : ) and type :set number
To unset number in vim
1 - Press Key
2 - Press Colon ( : ) and type :set nonumber
To Jump at the start or first line in vim
:0
To Jump N line number, ex line 10
:10
Jump to the end of the file in vi or end of the line in vim
:$
Jump back to the previous position
Ctrl + o
Jump to the next position
Ctrl + i
Thanks you !!
I hope this topic gave you all the information you needed. If you have any further questions or would like more detailed directions feel free to contact us using any of the following sources.We look forward to talking to you.