Vi Editor - Vim Cursor Movement, Vi editor Tutorial |
VI Text Editor - Cursor Movements
We can move the cursor with the help of keyboard Arrow key and h,j,k,l key
OR
- h = Left
- j = Down
- k = Up
- l = Right
For the action we will first press "ESC" Key from the keyboard and then press below key
To move the cursor right side on the first character of the word
w or W
To move the cursor left side on the first character of the word
b or B
To move cursor to the beginning of current line
0To move cursor to the end of current line
$
To Scroll or Page up
Ctrl + u
To Scroll or Page down
Ctrl + d
Go to the bottom of the file, or go to the last line of the file
G
Go to the X line number, for example go to the line number 10
10G
Go to the top of the file, or go to the first line of the file
gg
Move to the top/middle/bottom of the screen
H
M
L
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.