当前位置:网站首页>How to personalize VIM editor format (DIY)
How to personalize VIM editor format (DIY)
2022-06-26 14:21:00 【select one pointer】
Sometimes we face some repetitive problems , Programmers always want to configure themselves for repetitive problems ,vim So many header files before , It's not very friendly to new people , Don't talk too much. Start
<< The preceding numbers are the steps
1.cd /etc/vim
2.cp vimrc ~vimrc( Backup )
3.sudo vim vimrc
4. Add the following statement on vimrc in
set number
set cursorline
set tabstop=4
set hlsearch
set smartindent
set showcmd
set cmdheight=2
autocmd BufNewFile *.c 0r /etc/vim/template.c
<< The renderings are as follows :

<<DIY Personalized configuration -- Create a class template named template.c Can be implemented c file
/**********************************************************************/
/*******************************AAAA********************************/
/*********************************VVVV***********************************/
/**********************************************************************/
#include<stdio.h>
#include<stdlib.h>
#include<string.h>
#include<fcntl.h>
#include<unistd.h>
#include<errno.h>
int main(int argc, char* argv[])
{
return 0;
}
/***********************************************************************/
/*********************************end***********************************/
/***********************************************************************/

7. Check whether it is successful after switching to the home directory
So simple DIY Just ok 了
边栏推荐
- Freefilesync folder comparison and synchronization software
- Wechat applet - bind and prevent event bubble catch
- 同花顺股票开户选哪个证券公司是比较好,比较安全的
- Gartner 2022年顶级战略技术趋势报告
- d检查类型是指针
- ICML 2022 | limo: a new method for rapid generation of targeted molecules
- Niuke challenge 48 e speed instant forwarding (tree over tree)
- 免费的机器学习数据集网站(6300+数据集)
- BP neural network for prediction
- Sword finger offer 18.22.25.52 Double pointer (simple)
猜你喜欢

布局管理器~登录界面的搭建实例

Wechat applet -picker component is repackaged and the disabled attribute is added -- below

Hard (magnetic) disk (I)

服务器创建虚拟环境跑代码

Win10 home vs pro vs enterprise vs enterprise LTSC

Range of types

Gartner 2022年顶级战略技术趋势报告

Sword finger offer 18.22.25.52 Double pointer (simple)

8.Ribbon负载均衡服务调用

Zero basics of C language lesson 8: Functions
随机推荐
Knowledge about the determination coefficient R2 and the relationship with the correlation coefficient
Stream常用操作以及原理探索
Sword finger offer 18.22.25.52 Double pointer (simple)
Logical operation
[jsoi2015] string tree
Freefilesync folder comparison and synchronization software
C language | Consortium
Common controls and custom controls
布局管理器~登录界面的搭建实例
Gee - Global Human Settlements grid data 1975-1990-2000-2014
Formal parameters vs actual parameters
Matlab programming related knowledge
1075 pat judge (25 points)
Insect operator overloaded a fun
Variable declaration of typescript
PHP非对称加密算法(RSA)加密机制设计
9项规定6个严禁!教育部、应急管理部联合印发《校外培训机构消防安全管理九项规定》
ArcGIS cannot be opened and displays' because afcore cannot be found ' DLL, solution to 'unable to execute code'
8.Ribbon负载均衡服务调用
Notes: the 11th and 12th generation mobile versions of Intel support the native thunderbolt4 interface, but the desktop version does not