当前位置:网站首页>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
边栏推荐
- Yunna | fixed assets information system management, information-based fixed assets management
- Citation of Dissertation
- 一些生活的思考
- Shell spec date format
- SFDP super form development platform v6.0.4 was officially released
- 阿于的彩虹桥
- Equivalence class partition method for test case design method
- Some thoughts on life
- The listing of Symantec electronic sprint technology innovation board: it plans to raise 623million yuan, with a total of 64 patent applications
- What are the top ten securities companies? In addition, is it safe to open a mobile account?
猜你喜欢

Mysql Duplicate entry ‘xxx‘ for key ‘xxx‘

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

Text classification using huggingface

Outsourcing work for three years, waste a step confused

Distributed task scheduling elasticjob demo

Comment personnaliser les modèles et générer rapidement le code complet dans l'idée?

初始I/O及其基本操作

Common interview questions for network workers: Telnet, TTL, router and switch

In 2022, the latest and most detailed idea associated database method and visual operation of database in idea (including graphic process)

Interviewer: how to solve the problem of massive requests for data that does not exist in redis, which affects the database?
随机推荐
【深度学习编译】算子编译 IR 转换
I / o initial et son fonctionnement de base
[lorawan node application] the application and power consumption of Anxin ra-08/ra-08h module in lorawan network
利用tsne将不同句子关于相似度可视化出来
外包干了三年,废的一踏糊涂...
Outsourcing work for three years, waste a step confused
[daily question 1] traversal of binary tree
ML:置信区间的简介(精密度/准确度/精确度的三者区别及其关系)、使用方法、案例应用之详细攻略
Antd - tree structure: default deployment node attribute failure - Basic promotion
Mysql Duplicate entry ‘xxx‘ for key ‘xxx‘
如何拒绝期末复习无用功?猿辅导:找准适合自己的复习方法很重要
月薪没到30K的程序员必须要背的面试八股,我先啃为敬!
【云原生】容器场景下的内核安全
作文总写不好怎么办?猿辅导:家长要注意这几点
YuMinHong: my retreat and advance; The five best software architecture patterns that architects must understand; Redis kills 52 consecutive questions | manong weekly VIP member exclusive email weekly
A Si's mood swings
Distributed task scheduling elasticjob demo
[proteus simulation] 8-bit port detection 8 independent keys
[garment software] what are the criteria for the selection of garment production management system?
Yunna | fixed assets system management, NC system management where are the fixed assets