当前位置:网站首页>VIM common shortcut keys
VIM common shortcut keys
2022-06-24 15:01:00 【51CTO】
As Linux Operations staff , The most commonly used text editor must be Vim , Collect some Vim Common shortcut keys for notes .
Particular attention ,Vim Case sensitive .
Move the cursor
The arrow keys move
h or ← The cursor moves left
l or → The cursor moves right
j or ↓ The cursor moves down
k or ↑ The cursor moves up
Word movement
w (“word”) Move the cursor one word to the right
b (“back”) The cursor moves one word to the left
e (“end”) Move the cursor to the last letter of the current word
Line beginning and end movement
Like regular expressions
^ Move cursor to the beginning of line
$ Move the cursor to the end of the line
The screen position moves
H (“high”) Move the cursor to the top of the screen
M (“middle”) Move the cursor to the middle of the screen
L (“low”) Move the cursor to the bottom of the screen
Page scrolling
Ctrl-f (“forward”) Page down ( The whole screen )
Ctrl-d (“down”) Turn down half the page ( Half a screen )
Ctrl-b (“backward”) Page up ( The whole screen )
Ctrl-u (“up”) Turn up half the page ( Half a screen )
insert text
a Insert text... To the right of the cursor
A Insert text at the end of the line
i Insert text... To the left of the cursor
I Insert text at the beginning of the line
o Insert a new line under the cursor
O Inserts a new line on the cursor
Modify the text
cw Delete the right part of the cursor of the current word , Enter edit mode
cc Replace the current line with an empty line , Enter edit mode
s Delete the current letter , Enter edit mode
r Replace current letter , Enter a letter and automatically return to the command mode
yy Copy the current row
'n'yy Copy the current n That's ok , such as 3yy , Copy the current 3 That's ok
p Paste the copied text to the next line
Undo modify
u Undo last modification
U Undo all changes to the current line
Ctrl-r Restore the last modification
Delete text
Delete letters
x Delete the letter to the right of the cursor
X Delete the letter to the left of the cursor
Delete words
dw (“delete word”) Delete the right part of the cursor of the current word (cw Will enter edit mode )
daw (“delete a word”) Delete the whole word where the cursor is located ( Include the space after the word )
diw (“delete inside word”) Delete the whole word where the cursor is located ( Do not include the space after the word )
Delete row
dd Delete a line
'n'dd Delete n That's ok , such as 2dd Delete two consecutive lines
dt<char> Delete the current line cursor to the specified letter <char>
边栏推荐
- MES在流程和离散制造企业的15个差别(下)
- 高薪程序员&面试题精讲系列115之Redis缓存如何实现?怎么发现热key?缓存时可能存在哪些问题?
- Redis interview questions
- 证券账户理财安全吗??
- Database considerations
- 数据库注意事项
- 【比特熊故事汇】6月MVP英雄故事|技术实践碰撞境界思维
- 10 Ces autographes très stylisés.
- Go language concurrency model mpg model
- Six stones Management: garbage dump effect: if you don't manage your work, you will become a garbage dump
猜你喜欢
Oracle RAC configuration multipathing

Brief discussion on the implementation framework of enterprise power Bi CI /cd

成功解决:selenium.common.exceptions.SessionNotCreatedException: Message: session not created: This versi

日常知识科普

In the eyes of the universe, how to correctly care about counting East and West?

探索云原生数据库,纵观未来科技发展

在宇宙的眼眸下,如何正确地关心东数西算?

laravel下视图间共享数据

从pair到unordered_map,理论+leetcode题目实战

Go language - use of goroutine coroutine
随机推荐
How to evaluate domestic reporting tools and Bi software
Explore cloud native databases and take a broad view of future technological development
50 practical applications of R language (23) - important concepts of Bayesian Theory: credibility, model models, and parameters
GO语言-init()函数-包初始化
Restoring to an earlier version in CVS
Successfully solved: selenium common. exceptions. SessionNotCreatedException: Message: session not created: This versi
From pair to unordered_ Map, theory +leetcode topic practice
Port conflict handling method for tongweb
Idea connection MySQL custom generated entity class code
测试 H5 和小程序的区别,你真的知道吗?
Preliminary study on AQS
Redis interview questions
10_那些格调很高的个性签名
一个简单而功能强大的开发者工具箱Box3.cc
3环杀掉360安全卫士进程
在同花顺开户证券安全吗,需要什么准备
港股上市公司公告 API 数据接口
Development of digital Tibetan product system NFT digital Tibetan product system exception handling source code sharing
Bert whitening vector dimension reduction and its application
证券账户理财安全吗??