Some simple VI Editor commands - for getting in and out

VI Editor

type i - to go into input mode 

ESC to go back to command mode

:quit (without saving)

:quit! (without saving)

:w  save without quitting hidden files - 

defaults write AppleShowAllFiles YES

*Note in Mavericks it must be a lower-case ‚f‘ for finder


Bash Profile


To access the Bash Profile using VI, (you might have to create it) go to Users/Henryvw.  This is also the appropriate folder to create your bash_profile if you do not already have one in the Users/Henryvw folder.

| Back