National Cyber Warfare Foundation (NCWF) Forums


Overly simplistic vi command reference


0 user ratings
2021-04-30 16:28:45
blscott
Initial training material

 - archive -- 
Needless to say vi is of the devil. However, in some cases we need it. This is a simple command reference.

Opening a file with vi
  • vi
Editing a file after you have opened it
  • Press the Insert key "Ins"
  • Move to where you want to edit and start typing/make your edits
Saving your changes and exiting the file
  • Press the escape key "esc"
  • Press Shift and : together to open a vi command prompt
  • Type in wq <-- stands for write and quit
Quitting out of a file without saving
  • Press the escape key "esc"
  • Press Shift and : together to open a vi command prompt
  • Type in q!   <-- stands for quit, I mean it because vi is dumb and must be ordered around



Comments
new comment
Nobody has commented yet. Will you be the first?
 
Forum
Initial training material



© Copyright 2012 through 2023 - National Cyber War Foundation - All rights reserved worldwide.