当前位置:网站首页>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 |
边栏推荐
- Uncover gaussdb (for redis): comprehensive comparison of CODIS
- Pycaret successfully resolved the problem that 'sklearn model_ selection._ Search 'import name "\u check\u param\u grid"
- Flutter common commands and problems
- Understanding and construction of devsecops and Devops
- How can we make an annual income of onemillion yuan by making our own media video?
- Pd1.4 to hdmi2.0 adapter cable disassembly.
- MYSQL中对复杂JSON的更新
- 2020最新最全IT学习线路
- Architects reveal the difference between working in Alibaba, Tencent and meituan
- Using DBF of VFP to web salary query system
猜你喜欢

黑馬暢購商城---3.商品管理

20、wpf之MVVM命令绑定

黑马畅购商城---1.项目介绍-环境搭建

Explain factor analysis in simple terms, with case teaching (full)

Use PHP script to view the opened extensions

An easy-to-use seal design tool - (can be converted to ofd file)

Rank sum ratio comprehensive evaluation method for common models in mathematical modeling

devsecops与devops的理解与建设

一套自动化无纸办公系统(OA+审批流)源码:带数据字典

Time series analysis - how to use unit root test (ADF) correctly?
随机推荐
R language uses the multinom function of NNET package to build an unordered multi classification logistic regression model, and uses the summary function to obtain the summary statistical information
sklearnex 让你的 sklearn 机器学习模型训练快得飞起?
网络上开户买股票是否安全呢?
19. Implementation of MVVM architecture based on WPF event to command
The idea of mass distribution of GIS projects
The temporary table from XML to VFP is simple and easy to use and worth collecting
Why can't you Ping the website but you can access it?
R语言使用构建有序多分类逻辑回归模型、epiDisplay包的ordinal.or.display函数获取有序logistic回归模型的汇总统计信息(变量对应的优势比及其置信区间、以及假设检验的p值)
揭秘GaussDB(for Redis):全面对比Codis
Network related encapsulation introduced by webrtc native M96 basic base module
Explain factor analysis in simple terms, with case teaching (full)
VFP serial port communication is difficult for 9527. Maomao just showed his skill and was defeated by kiss
Hook technology
The dist function of R language calculates the distance between two samples in dataframe data, returns the distance matrix between samples, and specifies the distance calculation method through the me
机器学习自学成才的十条戒律
Recyclerview scrolls to the specified location
黑马畅购商城---1.项目介绍-环境搭建
PyCaret 成功解决无法从‘sklearn.model_selection._search‘导入名称“_check_param_grid”
学习笔记 2022 综述 | 自动图机器学习,阐述 AGML 方法、库与方向
Dark horse shopping mall ---1 Project introduction - environment construction