打开一个文件:vim file_path,回车,如
开启编辑:按“i”
退出编辑:按“Esc”
退出vim:按“:q”
保存vim:按“:w”
保存并退出vim:按“:wq”
强制退出vim:按“:q!”
至此,,转载请注明出处。