当时用vi编辑的时候出现以下情况
E325: ATTENTION
Found a swap file by the name ".os.sh.swp"
owned by: oracle dated: Mon Aug 11 15:33:36 2014
file name: ~oracle/os.sh
modified: YES
user name: oracle host name: shoptest
process ID: 11834
While opening file "os.sh"
dated: Mon Aug 11 14:58:39 2014
(1) Another program may be editing the same file.
If this is the case, be careful not to end up with two
different instances of the same file when making changes.
Quit, or continue with caution.
(2) An edit session for this file crashed.
If this is the case, use ":recover" or "vim -r os.sh"
to recover the changes (see ":help recovery").
If you did this already, delete the swap file ".os.sh.swp"
to avoid this message.
Swap file ".os.sh.swp" already exists!
[O]pen Read-Only, (E)dit anyway, (R)ecover, (D)elete it, (Q)uit, (A)bort:
解决方案:
删除.os.sh.swp这个文件