1.、vim .bash_profile 2 、点击a健进入可编辑状态,光标选中编辑位置即可进行编辑 3、编辑完成按一下esc,然后shift + :同时按一下 4、顺序按一下 w q ,这是保存退出编辑模式的意思