当前位置:网站首页>vim 的实用操作
vim 的实用操作
2022-07-03 03:53:00 【dxccccccccccc】
vim 的实用操作
基础操作
# 打开文件
vim test.txt
# 插入文字
i
# 退出
q
# 不保存退出
q!
# 保存退出
wq
全文本的跳转
# 跳转到文本的首字
gg
# 跳转到文本的末尾
shift + g # G
行内跳转
# 跳转到当前行的第一个字
0
# 跳转到当前行的最后一个字
shift + 4 # $
当前屏幕的跳转
# 跳转到当前屏幕的第一行
shift + h # H
# 跳转到当前屏幕的中间行
shift + m # M
# 跳转到当前屏幕的最后一行
shift + l # L
翻页
# 查看下一行
ctrl + e
# 查看上一行
ctrl + y
# 下一页
ctrl + f
# 上一页
ctrl + b
# 向下翻半页
ctrl + d
# 向上翻半页
ctrl + u
上下左右移动
# 左
h
# 下
j
# 上
k
# 右
l
单词的移动
# 移动光标到下一个单词(符号)首个字符
w
# 移动光标到下一个单词(符号)尾部字符
e
# 移动光标到上一个单词(符号)尾部字符
ge
# 移动光标到上一个单词(符号)首个字符
b
快速定位
# 光标跳转到最后修改行
'.(单引号+点号) # 光标跳转到最后修改点 `.(1左边那个键+点号) # 光标跳转到上一次离开该文件时的行 '" (单引号+双引号)
边栏推荐
- 2022年已过半,得抓紧
- Recursive use and multi-dimensional array object to one-dimensional array object
- MongoDB簡介
- Reflection and planning of a sophomore majoring in electronic information engineering
- [mathematical logic] propositional logic (judgment of the correctness of propositional logic reasoning | formal structure is eternal truth - equivalent calculus | deduction from premise - logical reas
- In Net 6 project using startup cs
- Table structure of Navicat export database
- 在写web项目的时候,文件上传用到了smartupload,用了new string()进行转码,但是在数据库中,还是会出现类似扑克的乱码
- Numpy warning visibledeprecationwarning: creating an ndarray from ragged needed sequences
- C语言HashTable/HashSet库汇总
猜你喜欢
随机推荐
没有sXid,suid&sgid将进入险境!-尚文网络xUP楠哥
错误 C2694 “void Logger::log(nvinfer1::ILogger::Severity,const char *)”: 重写虚函数的限制性异常规范比基类虚成员函数
2022 tea master (primary) examination questions and tea master (primary) examination question bank
Introduction à mongodb
[learning notes] seckill - seckill project - (11) project summary
递归:深度优先搜索
[mathematical logic] propositional logic (propositional and connective review | propositional formula | connective priority | truth table satisfiable contradiction tautology)
Makefile demo
【DRM】DRM bridge驱动调用流程简单分析
MongoDB简介
The difference between static web pages and dynamic web pages & the difference between Web1.0 and Web2.0 & the difference between get and post
[Blue Bridge Road - bug free code] pcf8591 - code analysis of AD conversion
PHP generates PDF tcpdf
Mongodb installation & Deployment
numpy之 警告VisibleDeprecationWarning: Creating an ndarray from ragged nested sequences
第十届中国云计算大会·中国站:展望未来十年科技走向
Simple wechat applet development page Jump, data binding, obtaining user information, obtaining user location information
Commands related to the startup of redis under Linux server (installation and configuration)
105. Detailed introduction of linkage effect realization of SAP ui5 master detail layout mode
毕设-基于SSM宠物领养中心



![Ansible introduction [unfinished (semi-finished products)]](/img/2a/0003daf761ba02d8837c4657fc3f29.png)




