当前位置:网站首页>VI command details
VI command details
2022-07-28 03:16:00 【Song Hui Jiale】
One 、vi Commands are divided into three modes , Command mode 、 The input mode 、 Last row mode
Command mode
- Move the cursor Beginning to end end perhaps $
- Multi line jump : First jump to the number of lines as you want Press G The last line :GG first line :gg
- Copy entire line :yy( Duplicate a row )
- Paste :p
- Cut the whole line :dd
- Delete words : x
- revoke :u U: Undo all
- replace text :r
- Find content :/ /+ The word you want n: Down N: Up
- According to the line Numbers set nu
The input mode
- The command jumps to input mode : Press i( Insert... At the current cursor )
- Press o: Insert... In the next line O: Insert... In the previous line
- Press esc Go back to command mode
Last row mode
Replace find
General formula : Range s/ Old character ( You can use wildcards )/ New characters / Modifier
s: Search for commands
Modifier :
g: Replace everything you find , If not g By default, only the first one found is replaced
i : Case insensitive
c: Ask you ( Need to change )
% s/^/#/g: Add # Number
边栏推荐
猜你喜欢

Exness: Japanese prices rose and incomes fell, with the pound / yen breaking 165

53. Maximum Subarray最大子数组和

静态博客搭建工具汇总

Unexpected harvest of epic distributed resources, from basic to advanced are full of dry goods, big guys are strong!

QFileDevice、QFile、QSaveFile、QTemporaryFile

Embedded sharing collection 22

exness:日本物价上涨收入下降,英镑/日元突破 165

43.js -- scope chain

Industry insight | is speech recognition really beyond human ears?

Interview experience: first tier cities move bricks and face software testing posts. 5000 is enough
随机推荐
Record of a cross domain problem
NPDP考生!7月31号考试要求在这里看!
《MySQL数据库进阶实战》读后感(SQL 小虚竹)
基于OpenCV的轮廓检测(3)
[2022 Niuke multi school 2 K link with bracket sequence I] bracket linear DP
Stm32f407 ------- FPU learning
【uni-app高级实战】手把手带你学习一个纯实战复杂项目的开发2/100
Stop paging with offset and limit. The performance is too poor!
Embedded sharing collection 22
My approval & signature function of conference OA project
上位机与MES对接的几种方式
ECCV 2022 | open source for generative knowledge distillation of classification, detection and segmentation
【ACwing 1064 小国王】状压dp
[stream] parallel stream and sequential stream
GAMES101复习:光线追踪(Ray Tracing)
数字孪生智慧楼宇可视化平台实现对园区企业、公众服务一体化
【下载文件】uniapp开发小程序,下载文件并保存到本地
Data Lake: flume, a massive log collection engine
OA项目之我的审批(会议查询&会议签字)
会议OA项目之我的审批&&签字功能