http://www.jb51.net/os/RedHat/1131.html
- vi Hello.java
- 输入i [insert模式]
- 输入esc键
- 输入”:”进入命令模式
- 输入wq | q!
- 编译Hello.java javac Hello.java
- 运行Hello java Hello
wq:退出并保存
q!:退出不保存
vi - press escape to get into command mode if you re not already in command mode (if you are, it s OK to press it anyway). :q to quit :w to save, :wq to do both.
http://www.tutorialspoint.com/unix/unix-vi-editor.htm
http://www.howtogeek.com/102468/a-beginners-guide-to-editing-text-files-with-vi/