vi is the default editor in Linux operating systems. It can be used not just to write programs, but to write any type of text files. Refer the following link for complete set of commands....
The 'vi' editor is a text editor; it can edit anything that is displayable ASCII text. You can edit a password in the password file using 'vi' (not recommended).