In previous post we saw how important VIM commands are for handling a Linux hosting server, these commands basically come under Command mode of VIM
h – to move the cursor to left side
j – to move the cursor to down side
k – to move the cursor to up side
l – to move the cursor to right side
n| – to move the cursor to a particular character of the line, this is done by giving the that place’s number and if its valid the user notices a beep sound from the system. Entering just ‘|’ will move the cursor at the starting position of a particular line.
0 – to move the cursor at the beginning of the line
^ – to move the cursor at the first non blank character of a particular line.
$ – to move the cursor at the end point of a particular line.
fx – in this command you need to use any desired character in place of ‘x’ to move the cursor at the next appearance of that particular character used in the pace of ‘x’ within a single line.
Fx – it works similarly as ‘fx’ but in the reverse order, means you can fine previous appearance of the character placed instead of ‘x’.
[wW] – moves the cursor’s position word by word.
[bB] – moves the cursor’s position word by word in reverse order.
H- to move the cursor at topmost line of your screen.
M – to move the cursor at the middle line of your screen
L – to move the cursor at lowest line of your screen.
Ctrl-d – to scroll down the half page.
Ctrl-u – to scroll up the half page.
Ctrl-f – to scroll down the full page.
Ctrl-b – to scroll up the full page.
nG – in this command ‘n’ to be replaced by your desired number, which moves you to that particular numbered line of a file. i.e. if you typed 81G then you will be taken to the 81st line of that particular file.
Mx – in this command ‘x’ can be replaced by any single letter to which you want to comeback after going elsewhere. In short it is used for setting a line with a marker to be visited after the next move.
” – its command with two single quotes, and used for switching the positions simultaneously between two required places. In short it acts as a toggle.