当前位置:网站首页>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左边那个键+点号) # 光标跳转到上一次离开该文件时的行 '" (单引号+双引号)
边栏推荐
- Download and install node, NPM and yarn
- Mongodb installation & Deployment
- Message queue addition failure
- 静态网页 和 动态网页的区别 & WEB1.0和WEB2.0的区别 & GET 和 POST 的区别
- Tidal characteristics of the Bohai Sea and the Yellow Sea
- Role of JS No
- 2022年已过半,得抓紧
- 简易版 微信小程序开发之页面跳转、数据绑定、获取用户信息、获取用户位置信息
- [mathematical logic] propositional logic (equivalent calculus | idempotent law | exchange law | combination law | distribution law | De Morgan law | absorption rate | zero law | identity | exclusion l
- pytorch难学吗?如何学好pytorch?
猜你喜欢
ffmpeg下载安装教程及介绍
Makefile demo
学会pytorch能干什么?
pytorch是什么?pytorch是一个软件吗?
Hutool dynamically adds scheduled tasks
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
2022 tea master (intermediate) examination questions and analysis and tea master (intermediate) practical examination video
pytorch怎么下载?pytorch在哪里下载?
简易版 微信小程序开发之for指令、上传图片及展示效果优化
js中#号的作用
随机推荐
Leetcode: dynamic planning template
Download and install node, NPM and yarn
Role of JS No
Recursive use and multi-dimensional array object to one-dimensional array object
2022 tea master (intermediate) examination questions and analysis and tea master (intermediate) practical examination video
MySQL MAC download and installation tutorial
Appium自动化测试框架
基于Pytorch和RDKit的QSAR模型建立脚本
【学习笔记】seckill-秒杀项目--(11)项目总结
C语言HashTable/HashSet库汇总
Recursion: one dimensional linked lists and arrays
Introduction à mongodb
In Net 6 project using startup cs
2020-01-01t00:00:00.000000z date format conversion
毕设-基于SSM宠物领养中心
Numpy warning visibledeprecationwarning: creating an ndarray from ragged needed sequences
Simple wechat applet development page Jump, data binding, obtaining user information, obtaining user location information
释放数据力量的Ceph-尚文网络xUP楠哥
How does the pytorch project run?
错误 C2694 “void Logger::log(nvinfer1::ILogger::Severity,const char *)”: 重写虚函数的限制性异常规范比基类虚成员函数