Vim Basics

Opening and Closing Vim

  1. Open terminal on your computer
  2. Open vim by typing vim Filename (Replace Filename with the actual name
  3. Press i to start editing your file
  4. When finished editing hit esc then type :wq to close and save

Saving A File

When you are finished editing your file and want to update it to your website you need to save it to GitHub

  1. Close and save your file
  2. Type git add Filename
  3. Then type git commit -m "Commit message"
  4. Your commit message should be a short message about what you just added to your file.
  5. To send your changes to your repository, type git push