HostOnNet Blog

vi commands

Looking for Linux Server Admin or WordPress Expert? We can help.

Vi Commands

:wSave file
:wqSave and exit
:q!exit with out saving.
:set numberShow line number. To hide, use :set nunumber

Move Commands

CTRL + EScroll the window down
CTRL + YScroll the window up
CTRL + FScroll one page down
CTRL + BScroll one page up
Hmove cursor to top of the window
Mmove cursor to middle of the window
Lmove cursor to bottom of the window
gggo to start of the file
Ggo to end of the file

Posted in Linux

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.