当前位置:网站首页>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左边那个键+点号) # 光标跳转到上一次离开该文件时的行 '" (单引号+双引号)
边栏推荐
- Reflection and planning of a sophomore majoring in electronic information engineering
- 小程序获取用户头像和昵称
- PHP generates PDF tcpdf
- Is pytorch difficult to learn? How to learn pytorch well?
- Leetcode: dynamic planning template
- 简易版 微信小程序开发之for指令、上传图片及展示效果优化
- Wechat applet + Alibaba IOT platform + Hezhou air724ug built with server version system analysis
- Some preliminary preparations for QQ applet development: make an appointment for a development account, download and install developer tools, and create QQ applet
- Hutool dynamically adds scheduled tasks
- [Apple Photo Album push] IMessage group anchor local push
猜你喜欢
Bid farewell to artificial mental retardation: Mengzi open source project team received RMB 100 million financing to help NLP develop
FileZilla Client下載安裝
2022-07-02:以下go语言代码输出什么?A:编译错误;B:Panic;C:NaN。 package main import “fmt“ func main() { var a =
Error in compiled file: error: unmapped character encoding GBK
Leetcode: dynamic planning template
MongoDB安装 & 部署
pytorch开源吗?
CEPH Shangwen network xUP Nange that releases the power of data
NPM: the 'NPM' item cannot be recognized as the name of a cmdlet, function, script file, or runnable program. Please check the spelling of the name. If the path is included, make sure the path is corr
编译文件时报错:错误: 编码GBK的不可映射字符
随机推荐
SAP UI5 应用开发教程之一百零五 - SAP UI5 Master-Detail 布局模式的联动效果实现明细介绍
[learning notes] seckill - seckill project - (11) project summary
MongoDB简介
pytorch开源吗?
基于Pytorch和RDKit的QSAR模型建立脚本
2022 Shandong Province safety officer C certificate examination questions and Shandong Province safety officer C certificate simulation examination question bank
Recursion: one dimensional linked lists and arrays
编译文件时报错:错误: 编码GBK的不可映射字符
How to move towards IPv6: IPv6 Transition Technology - Shangwen network quigo
How to download pytorch? Where can I download pytorch?
[Blue Bridge Road -- bug free code] DS18B20 temperature reading code analysis
错误 C2694 “void Logger::log(nvinfer1::ILogger::Severity,const char *)”: 重写虚函数的限制性异常规范比基类虚成员函数
Arlo's thinking about himself
[leetcode question brushing day 34] 540 Unique element in array, 384 Disrupt array, 202 Happy number, 149 Maximum number of points on a line
How to execute a swift for in loop in one step- How can I do a Swift for-in loop with a step?
docker安装及启动mysql服务
leetcode:动态规划模板
[mathematical logic] propositional logic (propositional and connective review | propositional formula | connective priority | truth table satisfiable contradiction tautology)
毕设-基于SSM宠物领养中心
[home push IMessage] software installation virtual host rental tothebuddy delay