Save & Exit:
:x
:x
:wq
:q
:q!
Screen manipulation:
^f -->move forward one screen
^b -->move backward one screen
^d -->move down (forward) one half screen
^u -->move up (back) one half screen
Working with Multiple files:
To open multiple files:
$vi main.pl maintenance.pl
To hop between them:
:n --> Next file
:prev --> Previous file
:args --> To see which are the files open.