41
How To Use the vim Editor
For the purpose of this manual, we are going to use vim to edit files.These are the most common vim
operations:
• Use the keyboard arrows to find the required position in the file.
• Press Insert t
o
enable the Editing mode.
• Press Esc to di
sable the Editing mode.
• To search for phrases in the file, exit the editing
mode by pressing Esc, type the / key followed
by the word you are looking for. Once found, you can press the n key to go directly to the next
occurrence of the word.
• Type G to
go to the bottom of the file.
• Type gg to
move to the top of the file.
• Type :wq! t
o save and exit the file.
• Type :q! t
o exit without saving.