当前位置:网站首页>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左边那个键+点号) # 光标跳转到上一次离开该文件时的行 '" (单引号+双引号)
边栏推荐
- 【全民编程】《软件编程-讲课视频》【零基础入门到实战应用】
- Read a paper_ ChineseBert
- MongoDB主配置文件
- [leetcode question brushing day 34] 540 Unique element in array, 384 Disrupt array, 202 Happy number, 149 Maximum number of points on a line
- leetcode:动态规划模板
- [home push IMessage] software installation virtual host rental tothebuddy delay
- SAP UI5 应用开发教程之一百零五 - SAP UI5 Master-Detail 布局模式的联动效果实现明细介绍
- Open Visual Studio 2010 hangs when opening a SQL file sql file
- [daily question] dichotomy - find a single dog (Bushi)
- Separable bonds and convertible bonds
猜你喜欢

node,npm以及yarn下载安装

FileZilla client download and installation

2022 Shandong Province safety officer C certificate examination questions and Shandong Province safety officer C certificate simulation examination question bank

TCP/IP模型中的重磅嘉宾TCP--尚文网络奎哥

Some preliminary preparations for QQ applet development: make an appointment for a development account, download and install developer tools, and create QQ applet

Recursion: one dimensional linked lists and arrays

Download and install node, NPM and yarn

2022 polymerization process examination questions and polymerization process examination skills

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
![Ansible introduction [unfinished (semi-finished products)]](/img/2a/0003daf761ba02d8837c4657fc3f29.png)
Ansible introduction [unfinished (semi-finished products)]
随机推荐
2022 Shandong Province safety officer C certificate examination questions and Shandong Province safety officer C certificate simulation examination question bank
navicat 导出数据库的表结构
Téléchargement et installation du client Filezilla
2022年已过半,得抓紧
Mongodb master profile
错误 C2694 “void Logger::log(nvinfer1::ILogger::Severity,const char *)”: 重写虚函数的限制性异常规范比基类虚成员函数
Ansible introduction [unfinished (semi-finished products)]
Use of sigaction
[DRM] simple analysis of DRM bridge driver call process
释放数据力量的Ceph-尚文网络xUP楠哥
Message queue addition failure
ffmpeg之 一张/多张图片合成视频
ffmpeg下载安装教程及介绍
Wechat applet + Alibaba IOT platform + Hezhou air724ug built with server version system analysis
动态规划:最长公共子串和最长公共子序列
小程序获取用户头像和昵称
Role of JS No
没有sXid,suid&sgid将进入险境!-尚文网络xUP楠哥
Ffmpeg one / more pictures synthetic video
[Blue Bridge Road - bug free code] pcf8591 - code analysis of AD conversion