当前位置:网站首页>vi编辑器设置自定义快捷键自动生成c语言的main函数
vi编辑器设置自定义快捷键自动生成c语言的main函数
2022-07-16 20:59:00 【Serendipity_-】
首先找到.vimrc文件:vi .vimrc
在.vimrc文件末尾插入一行代码,如下
map mf i#include <stdio.h><Esc><Esc>oint main(int argc, char *argv[])<Esc>o{
<Esc>oreturn 0;<Esc>o}<Esc>2ko

然后保存退出
下次在创建的.c文件中,直接按mf就可以自动初始化出main函数。
边栏推荐
- The best way to practice Animation: cover transition
- [paddleseg source code reading] about the trivial matter that the paddleseg model returns a list
- 私域运营很火,私域运营是否适合所有企业?
- Leetcode 49. Alphabetic heterotopic word grouping
- 三维点云课程(四)——聚类与模型拟合
- Pytorch installation (very detailed)
- [play with es] es batch / full import data
- How to deal with time series event data? [doctoral thesis of Munich University of technology] neural time series point process (ntpp): continuous time event data modeling
- 开发者必看 | DevWeekly 第1期:什么是时间复杂度?
- Chapter 3 business function development (check the details of market activities)
猜你喜欢

Leetcode46. Full arrangement

Leetcode -- 49 letter ectopic word grouping

Can't go on, mend the foundation -- C thread develops output string program

北大&微软联合提出超强时间序列表示学习框架,显著提升多项时间序列任务效果

C # network application programming, experiment 2: IP address translation and domain name resolution exercises

Generate multiple databases at the same time based on multiple data sources and zero code, add, delete, modify and check restful API interfaces - mysql, PostgreSQL, Oracle, Microsoft SQL server multip

Servo valve moogd634-374c

Pytorch installation (very detailed)

Leetcode48. rotate image
![[paddleseg source code reading] about the trivial matter that the paddleseg model returns a list](/img/a4/bc61237e6557762487783f21602973.png)
[paddleseg source code reading] about the trivial matter that the paddleseg model returns a list
随机推荐
Enjoy meta mode of creation mode
Leetcode -- 49 letter ectopic word grouping
自定义Hook 和 普通函数、函数组件 的区别
Leetcode45. Jumping game II
Leetcode46. Full arrangement
Modify server password
C语言自定义类型:结构体,枚举,联合
Private domain operation is very popular. Is private domain operation suitable for all enterprises?
2022 soft test network administrator preparation guide
Transfer function
Quickly and completely delete node_ modules
[untitled]
关于产品 | 要怎么进行产品规划?
3D point cloud course (III) -- clustering
NASA首次拍到宇宙大爆炸后一瞬间的清晰照片
parker派克柱塞泵PV140R1K1T1NMMC
深入剖析斐波拉契数列
PMP practice once a day | don't get lost in the exam -7.16
私域运营很火,私域运营是否适合所有企业?
浅拷贝与深拷贝