当前位置:网站首页>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
边栏推荐
- Day 1
- 实现简单的数据库查询(不完整)
- Container security open source detection tool - veinmind (mirror backdoor, malicious samples, sensitive information, weak password, etc.)
- Vs code的安装步骤及环境配置
- Helm chart for Kubernetes
- 来!看排名一年上升16位的ClickHouse,如何在京东落地实践
- 抢先预约 | 阿里云无影云应用线上发布会预约开启
- 数据泄漏、删除事件频发,企业应如何构建安全防线?
- Solution: find the position of the first and last element in a sorted array (personal notes)
- QML control: combobox
猜你喜欢
直播预告|如何通过“智能边缘安全”提升企业免疫力?
京东云联合Forrester咨询发布混合云报告 云原生成为驱动产业发展新引擎
【C语言系列】— 把同学弄糊涂的 “常量” 与 “变量”
Preemptive appointment | Alibaba cloud shadowless cloud application online conference appointment opens
【赛事预告】云上开发,高效智能——第二届阿里云ECS CloudBuild开发者大赛即将启动
Live broadcast preview | how to improve enterprise immunity through "intelligent edge security"?
英伟达周锡健:设计到数字营销的最后一公里
365天挑战LeetCode1000题——Day 042 数组序号转换 + 相对名次 离散化处理
AiTalk创始人梁宇淇:镜像连接虚拟与现实的纽带
平行云CEO 李岩:CloudXR ,开启通往元宇宙的通道
随机推荐
英伟达周锡健:设计到数字营销的最后一公里
321, Jingdong Yanxi × Nlpcc 2022 challenge starts!
哈夫曼树以及哈夫曼编码在文件压缩上的应用
·来一篇编程之路的自我介绍吧·
Side effects and sequence points
2022数学建模竞赛暑期培训讲座——最优化方法:目标规划
In depth analysis of common cross end technology stacks of app
冒泡排序 C语言
存储类别
直播预告|如何通过“智能边缘安全”提升企业免疫力?
科班同学真的了解未来的职业规划吗?
【剑指offer】— 详解库函数atoi以及模拟实现atoi函数
End of document
千人规模互联网公司研发效能成功之路
Live broadcast preview | how to improve enterprise immunity through "intelligent edge security"?
365 day challenge leetcode 1000 questions - day 042 array sequence number conversion + relative ranking discretization processing
C language one-dimensional array
CMU15-213 Malloc Lab实验记录
Day 2
MySQL的详细安装使用教程(保姆式安装图文讲解)