当前位置:网站首页>Vi和Vim文本编辑器
Vi和Vim文本编辑器
2022-07-26 20:48:00 【Au杨】
目录
Vi和Vim
Vim是从 vi 发展出来的一个文本编辑器。代码补完、编译及错误跳转等方便编程的功能特别丰富,在程序员中被广泛使用。
作用
创建或修改文本文件
维护linux系统中的各种配置
Vim优点
功能齐全
跟linux系统融合度高
不需要自己安装
Vim的三种工作模式
命令模式:启动vi编辑器后默认进入命令模式,该模式中主要完成如光标移动、字符串查找,以及删除、复制、粘贴文件内容等相关操作;
输入模式:该模式中主要的操作就是录入文件内容,可以对文本文件正文进行修改、或者添加新的内容。处于输入模式时,vi编辑器的最后一行会出现“–INSERT–”的状态提示信息;
末行模式:该模式中可以设置vi编辑环境、保存文件、退出编辑器,以及对文件内容进行查找、替换等操作。处于末行模式时,vi编辑器的最后一行会出现冒号“:”提示符。
三种模式切换

命令模式
移动光标,上下左右移动
1.一行内跳转:开头直接到末尾 end $ 末尾直接到开头 ^ 0
多行间跳转: 最后一行 GG 第一行 gg 10 10G #G
2.复制整行:yy 复制多行:行数+yy 复制一个单词:yw
3.粘贴 p 粘贴到光标所在位置的下一行 大P光标所在位置的的上一行
操作表(附)


边栏推荐
- In depth study of efcore migrations
- < button> and < input type=button />
- ROS2节点通信实现零拷贝
- Solution to the problem of sticking and unpacking TCP
- Redis hash和string的区别
- event. preventDefault VS return false
- word-break: break-all VS word-wrap: break-word
- Cfdiv1+2-pathwalks- (tree array + linear DP)
- What are the characteristics of low code tools? The two development tracks of low code that can be seen by discerning people!
- Calculation formula of retained earnings rate
猜你喜欢

串口通信失败

Summary of common interview questions of operating system, including answers

Niuke brush questions - MySQL series

Alkbh1

Mobile phone \ landline call forwarding setting method

We were tossed all night by a Kong performance bug

Registration conditions for information system project managers in the second half of 2022 (soft examination advanced)

5、 Applet error: message:error: system error, error code: 80058, desc of scope userLocation is empty

From manual test to automatic test, it only took me a few months to double my salary

Devsecops, speed and security
随机推荐
Show load indicator when loading iframe
Browser browser cache
任正非再谈美国打压:活下去就是胜利,要战胜美国
25张炫酷交互图表,一文入门Plotly
golang版本管理gvm
SPI configuration
洛谷-线段覆盖-(区间排序问题总结)
[hcie security] dual computer hot standby - primary and standby backup
工业基础类IFC—提取模型结构树
Six instructions of Memcache based caching mechanism
JS click the picture to print the image
SPI配置
织梦文档关键词维护不管用
Smooth scroll to element
Cfdiv1+2-pathwalks- (tree array + linear DP)
(C language) a brief introduction to define
七、微信小程序运行报错:Error: AppID 不合法,invalid appid
Alkbh1
2022 open atom global open source summit agenda express | list of sub forum agenda on July 27
拖放表格行