q:退出;
wq:保存退出;
wqa:保存所有文件;
!:强制,可加在大部分命令里执行,如果是‘q!’那么强制退出之后不会保存更改内容;
sp newFileName:新建一个文件,并将vim编辑器分屏;
ctrl+w+↑/↓:切换分屏,↑切换到上半部分,↓切换到下半部分;
set nu:显示行号;输入行号 点击dd 可以剪切改行向上代码块;
Statement of this Website
The copyright of this blog article belongs to the blogger. Please specify the address when reprinting! If there is any infringement or violation of the law, please contact admin@php.cn Report processing!