当前位置:网站首页>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左边那个键+点号) # 光标跳转到上一次离开该文件时的行 '" (单引号+双引号)
边栏推荐
- Recursion: quick sort, merge sort and heap sort
- Separable bonds and convertible bonds
- 2022 mobile crane driver examination registration and mobile crane driver operation examination question bank
- 2022 tea master (primary) examination questions and tea master (primary) examination question bank
- leetcode:297. 二叉树的序列化与反序列化
- 8.8.2-PointersOnC-20220214
- Téléchargement et installation du client Filezilla
- Error c2694 "void logger:: log (nvinfer1:: ilogger:: severity, const char *)": rewrite the restrictive exception specification of virtual functions than base class virtual member functions
- Introduction to mongodb
- 记一次 .NET 差旅管理后台 CPU 爆高分析
猜你喜欢

FileZilla client download and installation

Latest version of NPM: the "NPM" item cannot be recognized as the name of a cmdlet, function, script file, or runnable program. Please check

2022deepbrainchain biweekly report no. 104 (01.16-02.15)

The latest analysis of the main principals of hazardous chemical business units in 2022 and the simulated examination questions of the main principals of hazardous chemical business units

在 .NET 6 项目中使用 Startup.cs

递归:深度优先搜索

释放数据力量的Ceph-尚文网络xUP楠哥

pytorch开源吗?

没有sXid,suid&sgid将进入险境!-尚文网络xUP楠哥

Leetcode: dynamic planning template
随机推荐
How to move towards IPv6: IPv6 Transition Technology - Shangwen network quigo
SAP UI5 应用开发教程之一百零五 - SAP UI5 Master-Detail 布局模式的联动效果实现明细介绍
js中#号的作用
IPv6 transition technology-6to4 manual tunnel configuration experiment -- Kuige of Shangwen network
Pytorch multi card distributed training distributeddataparallel usage
pytorch开源吗?
pytorch怎么下载?pytorch在哪里下载?
小程序获取用户头像和昵称
Table structure of Navicat export database
Hutool dynamically adds scheduled tasks
2022 tea master (intermediate) examination questions and analysis and tea master (intermediate) practical examination video
释放数据力量的Ceph-尚文网络xUP楠哥
【全民编程】《软件编程-讲课视频》【零基础入门到实战应用】
Error in compiled file: error: unmapped character encoding GBK
[learning notes] seckill - seckill project - (11) project summary
Open Visual Studio 2010 hangs when opening a SQL file sql file
[national programming] [software programming - Lecture Video] [zero foundation introduction to practical application]
静态网页 和 动态网页的区别 & WEB1.0和WEB2.0的区别 & GET 和 POST 的区别
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
golang xxx. Go code template