Getting Started. Vi is a terminal application, so youâll have to start it from a terminal window. Use the vi /path/to/file command to open an existing file with Vi. The vi /path/to/file command also works if the file doesnât exist yet; Vi will create a new file and write it to the specified location when you save.Remember to use sudo if you want to edit a system file.So, for example, youâd type sudo vi /etc/fstab if you wanted to edit your fstab file.i is a modal text editor, and it opens in command mode. Trying to type at this screen will result in unexpected behavior. While in command mode, you can move the cursor around with the arrow keys. Press the x key to delete the character under the cursor.
1 Persistent vomiting despite the change in diet can be an indication of some inflammatory bowel disease which needs to be treated by a vet. 2  Indigestion: One of the most common causes of a dog throwing up white foam is an upset stomach.
If a puppy is throwing up white or yellow foam, meals should be increased to 4 times per day and snacks may need to be given more often as well. Keep in mind that as the pup grows, his calorie needs grow.A 4 month old will need to eat more than a 3 month old and so on until he Chi has matured to his final adult weight.ne of the most common issues that strikes this breed is the issue of vomiting up white or yellow foam. The actual description of vomiting is involuntary ejection of matter from the stomach through the mouth.