当前位置:网站首页>VIM editor use
VIM editor use
2022-07-29 05:29:00 【Ryan fitter】
vim Editor use
If we want to edit text or modify files in terminal mode, we can use VI/VIM Editor ,Ubuntu
Bring it with you VI Editor , however VI Editors are used to Windows It's inconvenient for people who develop under , For example, unexpectedly
You cannot use the up, down, left and right keys on the keyboard to adjust the cursor position . So I recommend that you use VIM Editor ,VIM Editor
yes VI Editor upgrade version ,VI/VIM Editors are instruction based editors , You don't need a mouse , There is no food
single , Just use the keyboard to do all the editing .
We need to install it first VIM Editor , The order is as follows :
sudo apt-get install vim
After installation, you can use VIM The editor ,VIM The editor has 3 Working mode : The input mode 、 Instructions
Mode and bottom line mode , Different functions can be completed by switching different modes , Let's take editing a text document as an example
Explain VIM Use of editor . Open the terminal , Enter the command :
vi test.txt
We try to enter numbers in the figure , I found it impossible to input , This is not because your keyboard is broken . because VIM
The default is the document opened in read-only mode , So we need to switch to input mode , The command to switch to input mode is as follows :
i In front of the current cursor character , Switch to input mode .
I Convert to input mode at the beginning of the line where the current cursor is located .
a After the character of the current cursor , Switch to input mode .
A At the end of the line where the cursor is located , Switch to input mode .
o Below the line of the current cursor , Create a new line , And switch to input mode .
O Above the line of the current cursor , Create a new line , And switch to input mode .
s Delete cursor character .
r Replace character at cursor .
Remember to exit more times when you need to esc key Exit edit mode , Try it first shift Key point out : Press again w Key sum q Key to exit, as shown in the figure below 
边栏推荐
- 51万奖池邀你参战!第二届阿里云ECS CloudBuild开发者大赛来袭
- 来!看排名一年上升16位的ClickHouse,如何在京东落地实践
- 阿里云架构师细说游戏行业九大趋势
- Preemptive appointment | Alibaba cloud shadowless cloud application online conference appointment opens
- 游戏行业弹性计算最佳实践
- 365 day challenge leetcode 1000 questions - day 042 array sequence number conversion + relative ranking discretization processing
- GPIO的输入输出详解
- MySQL的详细安装使用教程(保姆式安装图文讲解)
- Best practices for elastic computing in the game industry
- Day 2
猜你喜欢

Together with digital people, digital space and XR platform, Alibaba cloud and its partners jointly build a "new vision"

200 多家 ISV 入驻!阿里云计算巢发布一周年

关于局部变量

C language first level pointer

365 day challenge leetcode 1000 questions - day 041 two point search completion anniversary + nth magic number + online election

365 day challenge leetcode 1000 questions - day 039 full binary tree inserter + find peak II + snapshot array

一维数组练习

Li Yan, CEO of parallel cloud: cloudxr, opens the channel to the metauniverse

B - 识别浮点常量问题

Container security open source detection tool - veinmind (mirror backdoor, malicious samples, sensitive information, weak password, etc.)
随机推荐
Container security open source detection tool - veinmind (mirror backdoor, malicious samples, sensitive information, weak password, etc.)
365 day challenge leetcode 1000 questions - day 037 elements and the maximum side length of squares less than or equal to the threshold + the number of subsequences that meet the conditions
刷题狂魔—LeetCode之剑指offer58 - II. 左旋转字符串 详解
QT learning: qdropevent drag event
抢先预约 | 阿里云无影云应用线上发布会预约开启
千人规模互联网公司研发效能成功之路
2022数学建模竞赛暑期培训讲座——最优化方法:目标规划
CMU15-213 Shell Lab实验记录
Alibaba cloud Zhang Xintao: heterogeneous computing provides surging power for the digital economy
51万奖池邀你参战!第二届阿里云ECS CloudBuild开发者大赛来袭
C language first level pointer
英伟达周锡健:设计到数字营销的最后一公里
CMU15-213 Malloc Lab实验记录
整数溢出和打印
During the appointment, the 2022 JD cloud industrial integration new product launch was launched online
Live broadcast preview | how to save 30% labor cost and shorten 80% trademark processing cycle?
Time complexity and space complexity
Preemptive appointment | Alibaba cloud shadowless cloud application online conference appointment opens
京东云分布式链路追踪在金融场景的最佳实践
Come on! See how Clickhouse, which has risen 16 places a year, can be implemented in jd.com