Vim Basics
Opening and Closing Vim
- Open terminal on your computer
- Open vim by typing vim Filename (Replace Filename with the actual name
- Press i to start editing your file
- When finished editing hit esc then type :wq to close and save
- (If you want to close without saving then just do :q)
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
- Close and save your file
- Type git add Filename
- Then type git commit -m "Commit message"
Your commit message should be a short message about what you just added to your file.
- To send your changes to your repository, type git push