You are here

vi

Basic Vi Editing - Most used commands

Every developer has heard of 'vi' at least once in their life. That empty screen with a flashing cursos can be a little intimidating at first. After a few attempts of typing your text and nothing is echoed back to the screen, than it becomes really intimidating. :)
To help those out there who want to be able at least to quit vi editing without closing their Terminal window, here are a few tips and basic commands.
The first thing you should know about vi is that it has two modes of operation:

How to create Bash Aliases in Mac Os

Being a flavor of Unix (in some level) it is possible to set some aliases in your Mac Os shell.
All you have to do is open your Terminal and type the commands below, or something else that suits more your taste.

  • vi ~/.bash_profile
  • Once the file is open in vi, just add the following lines (well you do know how to do basic vi editing, right?)

Subscribe to RSS - vi