当前位置:网站首页>VIM common commands and shortcut keys
VIM common commands and shortcut keys
2022-06-25 12:21:00 【lihongbao80】
One 、vim
1、Vim insert text
From command mode to input mode to edit , Can be pressed I、i、O、o、A、a Wait for the key to complete , Using different keys , The position of the cursor is different
Shortcut key | Function description |
---|---|
i | Insert the text you entered later at the current cursor position , The text behind the cursor moves to the right |
I | Insert the following text at the beginning of the line where the cursor is located , The beginning of a line is the first non white space character of the line , It is equivalent to moving the cursor to the beginning of the line to execute i command |
o | Insert a new line below the line where the cursor is located . The cursor stops at the beginning of an empty line , Waiting for input text |
O | Insert a new line above the line where the cursor is located . The cursor stops at the beginning of an empty line , Waiting for input text |
a | Insert the following text after the current cursor position |
A | Insert the following text at the end of the line where the cursor is located , It is equivalent to moving the cursor to the end of the line and then executing a command |
2、Vim Delete text
Shortcut key | Function description |
---|---|
x | Deletes the character where the cursor is located |
dd | Deletes the line where the cursor is located |
ndd | Delete current row ( Including this trip ) after n Line text |
dG | Delete everything from the cursor line to the end of the file |
D | Delete the cursor position to the end of the line |
:a1,a2d | Function from a1 Row to a2 The text content of the line |
Be careful , The deleted content is not really deleted , It's all on the clipboard . Move the cursor to the specified position , Press down “p” key , You can paste the deleted content here again .
3、Vim Copy and paste text
Shortcut key | Function description |
---|---|
p | Paste the contents of the clipboard behind the cursor |
P( Capitalization ) | Paste the contents of the clipboard in front of the cursor |
y | Copy the selected text to the clipboard |
yy | Copy the cursor line to the clipboard , This command can be preceded by a number n, Multiple lines can be copied |
yw | Copy the word at the cursor position to the clipboard |
边栏推荐
- 机器学习自学成才的十条戒律
- Rank sum ratio comprehensive evaluation method for common models in mathematical modeling
- Image tagging to obtain the coordinates of the image in the ImageView
- Mpai data science platform random forest classification \ explanation of regression parameter adjustment
- Quarkus SaaS dynamic data source switching implementation, simple and perfect
- The latest IT learning route in 2020
- R语言dist函数计算dataframe数据中两两样本之间的距离返回样本间距离矩阵,通过method参数指定距离计算的方法、例如欧几里得距离
- How terrible is it not to use error handling in VFP?
- An easy-to-use seal design tool - (can be converted to ofd file)
- 20. MVVM command binding of WPF
猜你喜欢
VFP develops a official account to receive coupons, and users will jump to various target pages after registration, and a set of standard processes will be sent to you
Uncover gaussdb (for redis): comprehensive comparison of CODIS
Explanation of ideas and sharing of pre-processing procedures for 2021 US game D (with pre-processing data code)
What is Flink? What can Flink do?
PD1.4转HDMI2.0转接线拆解。
19、wpf之事件转命令实现MVVM架构
黑马畅购商城---8.微服务网关Gateway和Jwt令牌
Rank sum ratio comprehensive evaluation method for common models in mathematical modeling
一套自动化无纸办公系统(OA+审批流)源码:带数据字典
黑马畅购商城---6.品牌、规格统计、条件筛选、分页排序、高亮显示
随机推荐
JS to realize the calculation of discrete aggregation points
Dynamic proxy
如果你也想做自媒体,不妨听大周给您点建议
Old ou, a fox friend, has had a headache all day. The VFP format is always wrong when it is converted to JSON format. It is actually caused by disordered code
R language uses the scale function to scale the input data of neural network to the minimum and maximum, scale the data to between 0 and 1, and divide the data set into training set and test set
优品购电商3.0微服务商城项目实战小结
一个硬件工程师走过的弯路
Uncover gaussdb (for redis): comprehensive comparison of CODIS
属性分解 GAN 复现 实现可控人物图像合成
. Using factory mode in net core
Understanding and construction of devsecops and Devops
R语言使用epiDisplay包的followup.plot函数可视化多个ID(病例)监测指标的纵向随访图、使用stress.type参数指定强调线的id子集的线条的类型(type)
Arm V7 coprocessor
一個硬件工程師走過的彎路
学习笔记 2022 综述 | 自动图机器学习,阐述 AGML 方法、库与方向
VFP calls the command line image processing program, and adding watermark is also available
Dark horse shopping mall ---2 Distributed file storage fastdfs
How can we make an annual income of onemillion yuan by making our own media video?
Is it safe to open an account and buy stocks? Who knows
Pycaret successfully resolved the problem that 'sklearn model_ selection._ Search 'import name "\u check\u param\u grid"