当前位置:网站首页>VIM editor common instructions
VIM editor common instructions
2022-06-30 00:56:00 【Lzg_ na】
Jump to specified line :
1. 88G ( Command mode )
2. :88 ( Last row mode )
Jump to file header :
gg ( Command mode )
Jump to the end of the file :
G( Command mode )
Automatic formatter :
gg=G( Command mode )
Braces correspond to :
% ( Command mode )
Move the cursor to the beginning of the line :
0 ( Command mode ) end of execution , The operating mode remains unchanged .
Move the cursor to the end of the line :
$ ( Command mode ) end of execution , The operating mode remains unchanged .
Delete single characters :
x ( Command mode ) end of execution , The operating mode remains unchanged .
Replace single characters :
Select the character to be replaced with the cursor , r ( Command mode ), Then press the character you want to replace
Delete a word :
dw( Command mode ) Place the cursor on the first letter of the word to operate .
Delete cursor to end of line :
D perhaps d$( Command mode )
Delete the cursor to the beginning of the line :
d0 ( Command mode )
Delete the specified area :
Press V ( Command mode ) Switch to a “ Visual Modes ”, Use hjkl Move the cursor to select the area to be deleted . Press d Delete the data in this area .
Delete the specified 1 That's ok :
In the line where the cursor is , Press dd ( Command mode )
Delete the specified N That's ok :
The first line to be deleted in the cursor , Press Ndd ( Command mode )
Duplicate a row :
yy
Paste :
p: backward 、P: forward .
lookup :
1. look for imagine Content :
In command mode , Press “/” Enter the keyword you want to search , enter . Use n Retrieve the next .
2. look for What you see :
In command mode , Place the cursor over any character of the word , Press “*”/ “#”
Single line replacement :
Place the cursor on the line to be replaced , Enter last line mode , Input :s / The original data / The new data
Replace throughout :
Last row mode , :%s / The original data / The new data /g g: No addition , Replace only the first... Of each line . sed
Specifies the replacement of the row :
Last row mode , : Start line number , Terminate line number s / The original data / The new data /g g: No addition , Replace only the first... Of each line .
:29,35s /printf/println/g
revoke 、 Counter cancellation :
u、ctrl+r( Command mode )
Split screen :
sp: Horizontal screen division . Ctrl+ww Switch .
vsp: Vertical screen division .Ctrl+ww Switch .
Jump to man manual :
Place the cursor over the function word to be viewed , Use K( Command mode ) Jump . Assign a volume , nK
View macro definitions :
Place the cursor over the macro definition word to be viewed , Use [d View definition statement .
Execute... In last line mode shell command :
:! command :! ls -l
边栏推荐
- Which department should the company's fixed assets be managed? How should the company's fixed assets be managed
- 面试官:大量请求 Redis 不存在的数据,从而影响数据库,该如何解决?
- 初始I/O及其基本操作
- [qnx hypervisor 2.2 user manual]6.2.2 communication between guest and host
- I / o initial et son fonctionnement de base
- UDP servers and clients in go
- Quick Pow: 如何快速求幂
- 一些生活的思考
- 在线文本数字识别列表求和工具
- Online text digit recognition list summation tool
猜你喜欢

太卷了~ 八股文,面试最强王者!

How to refuse the useless final review? Ape tutoring: it is important to find a suitable review method

Top performance version 2 reading notes (IV) -- memory monitoring
![[lorawan node application] the application and power consumption of Anxin ra-08/ra-08h module in lorawan network](/img/5d/9cff7bd25841c1ca6e5ab8e2994f51.png)
[lorawan node application] the application and power consumption of Anxin ra-08/ra-08h module in lorawan network

Outsourcing work for three years, waste a step confused

Online text digit recognition list summation tool

Seata 与三大平台携手编程之夏,百万奖金等你来拿
![[mrctf2020]ezpop-1 | PHP serialization](/img/f8/6164b4123e0d1f3b90980ebb7b4097.png)
[mrctf2020]ezpop-1 | PHP serialization

Developers, why does the maturity of container technology herald the arrival of cloud native era?

@Bugs caused by improper use of configurationproperties
随机推荐
玉米地里的小鸟
如何在IDEA中自定义模板、快速生成完整的代码?
Which department should the company's fixed assets be managed? How should the company's fixed assets be managed
面试官:大量请求 Redis 不存在的数据,从而影响数据库,该如何解决?
How latex enters a matrix
作文总写不好怎么办?猿辅导:家长要注意这几点
[Simulation Proteus] détection de port 8 bits 8 touches indépendantes
Antd - tree structure: default deployment node attribute failure - Basic promotion
Exercise "product": self made colorful Prompt string display tool (for loop and if condition judgment)
Yunna | fixed assets information system management, information-based fixed assets management
Comment personnaliser les modèles et générer rapidement le code complet dans l'idée?
Time does not spare
Text classification using huggingface
[programming problem] maze problem
Online text digit recognition list summation tool
DL: deep learning model optimization model training skills summary timely automatic adjustment of learning rate implementation code
Which securities company is better and which platform is safer for stock speculation account opening
Traffic, but no sales? 6 steps to increase website sales
月薪没到30K的程序员必须要背的面试八股,我先啃为敬!
Common settings in idea