当前位置:网站首页>VI editor sets custom shortcut keys to automatically generate the main function of C language
VI editor sets custom shortcut keys to automatically generate the main function of C language
2022-07-18 23:13:00 【Serendipity_-】
First find .vimrc file :vi .vimrc
stay .vimrc Insert a line of code at the end of the file , as follows
map mf i#include <stdio.h><Esc><Esc>oint main(int argc, char *argv[])<Esc>o{
<Esc>oreturn 0;<Esc>o}<Esc>2ko

Then save to exit
The next time you create .c In file , Directly by mf You can automatically initialize main function .
边栏推荐
- 三维点云课程(三)——聚类
- Programmer growth Article 20: what should I pay attention to when I am just promoted to manager?
- 私域运营很火,私域运营是否适合所有企业?
- Sklearn linear regression completes the fitting of multiple term function and sine function
- ImportError: cannot import name ‘Imputer‘ from ‘sklearn.preprocessing‘
- NASA首次拍到宇宙大爆炸后一瞬间的清晰照片
- mysql忘记密码重置
- 安全测试之逻辑漏洞
- 微信小程序--》小程序简介与工具安装配置
- [CVPR2019] On Stabilizing Generative Adversarial Training with Noise
猜你喜欢

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

Cloud native: docker's practical experience (IV) deploying redis three master and three slave clusters on docker

【图片编辑小软件】FastStone Photo Resizer支持批量转换和批量重命名

Pytorch installation (very detailed)

ADB常用入门指令
![Collaboration process [simple summary]](/img/ee/12679490e540dc5897c9e84b14473b.png)
Collaboration process [simple summary]

leetcode--242. 有效的字母异位词

如何高效系统学习 MySQL?
![[image editing software] FastStone Photo Resizer supports batch conversion and batch renaming](/img/18/a1abdc5a805a85dade6f88111ae7fb.png)
[image editing software] FastStone Photo Resizer supports batch conversion and batch renaming

3D point cloud course (III) -- clustering
随机推荐
Log collection scheme efk
开发者必看 | DevWeekly 第1期:什么是时间复杂度?
EF Core学习笔记:一对多关系配置
MySQL related commands
C # network application programming, experiment 2: IP address translation and domain name resolution exercises
What if the work of product evaluators is repetitive and cumbersome? Can it be automated?
【决策树】使用决策树进行乳腺癌的诊断
Encapsulation and invocation of old store classes in business class library
Comparative investigation of three commonly used time series databases - incluxdb, Prometheus, iotdb
Sklearn linear regression completes the fitting of multiple term function and sine function
The problem of loss as Nan occurred during the training
3D point cloud course (I) -- Introduction to point cloud Foundation
Concept of Lun
三维点云课程(二)——最邻近问题
三维点云课程(一)——点云基础介绍
Multithreaded application
Private domain operation is very popular. Is private domain operation suitable for all enterprises?
[untitled]
Configure SSH login for Huawei switches
三维点云课程(三)——聚类