当前位置:网站首页>VIM common commands
VIM common commands
2022-07-24 00:50:00 【A Sheng classmate】
vim Common commands
Enter the text to use
shift+$: Jump to the last character of the line
shift+^: Jump to the first character of the line
shift+g: Jump to the first character of the last line
gg: Jump to the first character of the first line
ctrl+f: Move down one page
ctrl+b: Move a page up
ctrl+d: Move down half a page
ctrl+u: Move half a page up
yy: Copy the text of the line where the cursor is located
n+yy: Copy n Line text ( Including the line where the customs mark is located )
p: Paste text
dd: Deletes the line where the cursor is located ( You can also add n)
dd+p: Clip
u: revoke , Go back to the last operation .
ctrl+r: Reinstatement of revocation .
shift+ perhaps : Enter the bottom command mode ,Esc You can quit
set nu : According to the line Numbers
n:n Representation number , Indicates to which line
/ keyword : Find the keyword you want , From the front to the back , If it's not the keyword you want , Can press n Keep jumping down to find .
? keyword : Find the keyword you want , Look backwards , If it's not the keyword you want , Can press n Keep jumping up to find
w: Save text content
q: sign out , If you can't leave vim, Can be in 「q」 Followed by a 「!」 Force to leave vim
wq: Save the text content and exit
i Enter edit mode ,Esc You can quit
Normal editing can be performed at the cursor
边栏推荐
- Inode, soft link, hard link
- Image processing 1:rgb888_ YCbCr444
- Comparison of the shortcomings of redis master-slave, sentinel and cluster architectures
- Distributed cap principle
- Robot dog back submachine gun shooting video fire, netizens shivering: stoooooooopppp!
- AVX instruction set accelerated matrix multiplication
- C language macro definition
- IDEA 热部署(热加载)
- Redis cluster hash sharding algorithm (slot location algorithm)
- 【电赛训练】非接触物体尺寸形态测量 2020年电赛G题
猜你喜欢

Centernet target detection model and centerfusion fusion target detection model

freemarker

Don't let Fujin Yibo see this

如何使用 SAP Intelligent Robotic Process Automation 自动操作 Excel

An article teaches you the basic use of kubernetes

Intelligent OCR identification of express documents helps the logistics industry to upgrade Digitalization

【LeetCode第 83 场双周赛】

Selection method of geometric objects in Creo 9.0

High number_ Chapter 1 space analytic geometry and vector algebra__ Two point distance

Redis | very important Middleware
随机推荐
MySQL data query (select)
Don't let Fujin Yibo see this
Starfish OS: create a new paradigm of the meta universe with reality as the link
黑马程序员-接口测试-四天学习接口测试-第四天-Postman读取外部数据文件,读取数据文件数据,iHRM项目实战,员工管理模块,添加员工,批量运行测试用例,生成测试报告,
IDEA 热部署(热加载)
Educational Codeforces Round 132 (Rated for Div. 2)(A-D)
MySQL table field quantity limit and row size limit
MariaDB database upgrade version
Tutorial on principles and applications of database system (041) -- MySQL query (III): setting query conditions
多源文件方式去访问全局变量的方式(extern用法)
ES6 combines multiple class methods
Notes and Thoughts on the red dust of the sky (VI) due to lack
XXL job realizes the code parsing of email sending warnings (line by line code interpretation)
Semaphore
mysql 分支语句case报错
Blockbuster | certik: Web3.0 industry safety report release in the second quarter of 2022 (PDF download link attached)
落枕如何快速缓解
NOTICE: PHP message: PHP Warning: PHP Startup: Unable to load dynamic library ‘*****‘
MySQL之数据查询(SELECT)
Generic mechanism and enhanced for loop