当前位置:网站首页>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光标所在位置的的上一行
操作表(附)


边栏推荐
- Summary of common interview questions of computer composition principle, including answers
- Show load indicator when loading iframe
- 25张炫酷交互图表,一文入门Plotly
- What are the characteristics of low code tools? The two development tracks of low code that can be seen by discerning people!
- Get the direction of text selection
- [HCIA security] user authentication
- Solution to the problem of sticking and unpacking TCP
- 【音视频】ijkplayer播放器参数说明文档
- Mobile phone \ landline call forwarding setting method
- 基于Hough变换的直线检测(Matlab)
猜你喜欢

SPI配置

(C语言)文件的基本操作

Niuke brush questions - MySQL series

Remember the idea of solving the problem of invalid bound statement xxxxx once
![[hero planet July training leetcode problem solving daily] 26th and check the collection](/img/f1/e63b1f35b883274ca077cbd2ab4c24.png)
[hero planet July training leetcode problem solving daily] 26th and check the collection

Summary of common interview questions of computer composition principle, including answers

一些意想不到的bug记录

Alkbh1

ECCV 2022 | complete four tracking tasks at the same time! Unicorn: towards the unification of target tracking

1-《PyTorch深度学习实践》-线性模型
随机推荐
安全浏览器“隐身”模式可以查看历史记录吗?
SPI configuration
TCP的粘包拆包问题解决方案
ECCV 2022 | 同时完成四项跟踪任务!Unicorn: 迈向目标跟踪的大统一
Props with type Object/Array must...
日本批准向韩出口EUV光刻胶,三星、SK海力士危机或将缓解
【HCIA安全】双向NAT
MySQL的JDBC操作及入门案例
kalibr标定realsenseD435i --多相机标定
In addition to "adding machines", in fact, your micro service can be optimized like this
Number() VS parseInt()
<button> 与 <input type=“button“ />
In depth study of efcore migrations
word-break: break-all VS word-wrap: break-word
SPI配置
基于Hough变换的直线检测(Matlab)
Object.getOwnPropertyNames() VS Object.keys()
Some unexpected bug records
Smooth scroll to element
Broadcast voice H5 speechsynthesisutterance