当前位置:网站首页>Vim扩展内容
Vim扩展内容
2022-08-01 06:38:00 【The code family】
1.代码着色
案例:创建一个c语言小程序


如何控制着色是否显示? syntax: 语法
显示:“:syntax on”

不显示:“:syntax off”

2.vim中计算器的使用
当在编辑文件的时候需要去使用计算器去计算一些公式,则需要用计算器,但需要退出,vim自身就集成了一个简易的计算器。
a.进入编辑模式
![]()
b.按下按键“ctrl+R”,然后输入“=”,此时光标会到最后一行
c.输入需要计算的内容,按下回车
![]()
![]()
3.vim的配置
vim是一款编辑器,编辑器也是有配置文件的。
vim配置有三种情况:
a.在文件打开的时候在末行模式下输入的配置(临时的,不会永久显示)
b.个人配置文件(/.vimrc,如果没有可以自行新建)
①新建好个人配置文件之后进入编辑模式
![]()
②在配置文件中进行配置
比如显示行号:set nu

边栏推荐
- 企业员工人事管理系统(数据库课设)
- 阿里三面:MQ 消息丢失、重复、积压问题,该如何解决?
- Sound Signal Processing Fundamental Frequency Detection and Time-Frequency Analysis
- 小白的0基础教程SQL: 什么是SQL 01
- After the image is updated, Glide loading is still the original image problem
- 太厉害了,终于有人能把文件上传漏洞讲的明明白白了
- 2022年牛客多校第四场补题
- 从零开始—仿牛客网讨论社区项目(一)
- 轻量级的VsCode为何越用越大?为什么吃了我C盘10G?如何无痛清理VsCode缓存?手把手教你为C盘瘦身
- 说说js中使用for in遍历数组存在的bug
猜你喜欢

Datagrip error "The specified database userpassword combination is rejected..."Solutions

MySQL row locks and gap locks

Win任务栏图标异常解决

Detailed explanation of the crawler framework Scrapy

Dbeaver connect the MySQL database and error Connection refusedconnect processing

仿牛客网项目总结

Qt Widget project loading example of qml

AspNet.WebApi.Owin 自定义Token请求参数

Dell PowerEdge Server R450 RAID Configuration Steps

实战演练 Navicat 中英文模式切换
随机推荐
实战演练 Navicat 中英文模式切换
NIO programming
Does flinkcdc have any solution for mysql's date field type conversion?
WebSocket实现聊天功能
Datagrip error "The specified database userpassword combination is rejected..."Solutions
dbeaver连接MySQL数据库及错误Connection refusedconnect处理
使用string 容器翻转 字母
「面经分享」西北大学 | 字节 生活服务 | 一面二面三面 HR 面
Solve the problem of page flicker caused by browser scroll bars
Bean的生命周期
小白的0基础教程SQL: 安装MYSQL 03
uva12326
Speed up your programs with bitwise operations
uva10825
datagrip 报错 “The specified database userpassword combination is rejected...”的解决方法
mysql的行锁和间隙锁
2022.7.27 Selected lectures on good topics
Seleniu: Common operations on elements
LeetCode 0149. 直线上最多的点数
AspNet.WebApi.Owin 自定义Token请求参数