✏️ 添加 vim 操作

This commit is contained in:
nick 2019-10-09 14:55:22 +08:00
parent f8a9f7759f
commit 6195f80f47
2 changed files with 8 additions and 0 deletions

View File

@ -97,6 +97,7 @@ Host test2 #自定义名称
HostName ip #服务器 ip 地址
User nick #用户名
Port 22228 # ssh 端口,自定义端口,修改为指定端口号
IdentityFile /your/path/ # 密钥文件地址,要绝对路径
```
连接方式

7
vim.md
View File

@ -20,6 +20,7 @@ dd 删除光标所在行
5dd 删除光标所在下5行
dG 删除全部
u 撤销
ctrl r 反撤销
yy 复制行
5yy 复制5行
ggyG 复制全部
@ -27,6 +28,8 @@ p (小写)光标下一行粘贴
P (大写)光标上一行粘贴
gg 光标跳转到第一行
G 光标跳转到最后
0 光标跳转当前行第 1 列,下标从 0 开始
12 l 光标跳转到第 11
```
__命令模式常用操作__
@ -46,4 +49,8 @@ open path/filename 打开其他文件编辑
/关键字 向上搜索
set hlsearch #设置搜索高亮
set nohlsearch #取消搜索高亮
set cul #光标高亮当前行
set nocul #光标取消高亮当前行
set cuc #光标高亮当前列
set nocuc #光标取消高亮当前列
```