mirror of
https://github.com/Hizenberg469/Vim-tutorials.git
synced 2026-04-19 22:02:24 +03:00
47 lines
1.6 KiB
Plaintext
47 lines
1.6 KiB
Plaintext
Normal mode commands:
|
|
|
|
-> for navigating the file opened in vim:
|
|
|
|
h: to go left.
|
|
l: to go right.
|
|
j: to go down.
|
|
k: to go up.
|
|
|
|
ctrl + f: To do page down. Similar to page down button.
|
|
ctrl + b: To do page up. Similar to page up button.
|
|
z + <enter>: To bring the focus of vision to the centre
|
|
where the cursor is currently present.
|
|
w: To move the cursor by one word on the file. It include the
|
|
punctuation as a word.(move one word forward)
|
|
W: To move the cursor by one word on file. It don't include the
|
|
punctuation as a word.(move one word forward)
|
|
b: To move the cursor by one word on file. It include the
|
|
punctuation as a word.(move on word backward)
|
|
B: To move the cursor by one word on file. It include the
|
|
punctuation as a word.(move on word backward)
|
|
|
|
0: To move the first column of the current line the cursor
|
|
is present.
|
|
^: To move the first letter of the first word of the current
|
|
line the cursor is present.
|
|
$: To move the last letter of the last word of the current
|
|
line the cursor is present.
|
|
gg: To move the first column of the first line of the file.
|
|
G: To move to the last line of the file.
|
|
<line-number>gg or <line-number>G: To move the particular
|
|
<line-number> as mentioned.
|
|
ctrl + g: To know the current line we are on, the file name,
|
|
the percentage of we have covered according to
|
|
current cursor position.
|
|
|
|
g + (ctrl+g): To get more detailed information of whatever
|
|
the previous was showing.
|
|
|
|
|
|
Line mode:
|
|
|
|
-> for navigating using line mode:
|
|
|
|
:<line-number><enter> : To go to the particular <line-number>.
|
|
:$<enter> : To move to the last line in the file.
|