当前位置:网站首页>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左边那个键+点号) # 光标跳转到上一次离开该文件时的行 '" (单引号+双引号)
边栏推荐
- Commands related to the startup of redis under Linux server (installation and configuration)
- shardingsphere动态数据源
- Separable bonds and convertible bonds
- 基于Pytorch和RDKit的QSAR模型建立脚本
- Using jasmine to monitor constructors - spying on a constructor using Jasmine
- Half of 2022 is over, so we must hurry up
- Ansible introduction [unfinished (semi-finished products)]
- PHP generates PDF tcpdf
- leetcode:297. 二叉树的序列化与反序列化
- Basic operations of mongodb [add, delete, modify, query]
猜你喜欢
![[embedded module] OLED display module](/img/c4/474f5ee580d132654fbd1a4cd53bab.jpg)
[embedded module] OLED display module

Téléchargement et installation du client Filezilla

第十届中国云计算大会·中国站:展望未来十年科技走向

ffmpeg录制屏幕和截屏

What can learning pytorch do?

How to download pytorch? Where can I download pytorch?
![[Apple Photo Album push] IMessage group anchor local push](/img/a7/6a27d646ecba0d7c93f8dac38492a2.jpg)
[Apple Photo Album push] IMessage group anchor local push
![Ansible introduction [unfinished (semi-finished products)]](/img/2a/0003daf761ba02d8837c4657fc3f29.png)
Ansible introduction [unfinished (semi-finished products)]

TCP, the heavyweight guest in tcp/ip model -- Kuige of Shangwen network

Mysql Mac版下载安装教程
随机推荐
用Three.js做一個簡單的3D場景
Web session management security issues
Makefile demo
TCP/IP模型中的重磅嘉宾TCP--尚文网络奎哥
FileZilla Client下載安裝
Ffmpeg one / more pictures synthetic video
Téléchargement et installation du client Filezilla
2022 tea master (primary) examination questions and tea master (primary) examination question bank
Latest version of NPM: the "NPM" item cannot be recognized as the name of a cmdlet, function, script file, or runnable program. Please check
Debug: CD cannot be used in kaggle
递归:一维链表和数组
How to move towards IPv6: IPv6 Transition Technology - Shangwen network quigo
ffmpeg录制屏幕和截屏
FileZilla client download and installation
Docker install and start MySQL service
[learning notes] seckill - seckill project - (11) project summary
Tidal characteristics of the Bohai Sea and the Yellow Sea
2022deepbrainchain biweekly report no. 104 (01.16-02.15)
pytorch项目怎么跑?
The difference between static web pages and dynamic web pages & the difference between Web1.0 and Web2.0 & the difference between get and post