当前位置:网站首页>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 了
边栏推荐
- Niuke challenge 48 e speed instant forwarding (tree over tree)
- Gartner 2022年顶级战略技术趋势报告
- MySQL | basic commands
- A must for programmers, an artifact utools that can improve your work efficiency n times
- Introduction to granular computing
- Logical operation
- character constants
- Design of PHP asymmetric encryption algorithm (RSA) encryption mechanism
- C | analysis of malloc implementation
- Sword finger offer 10 Ⅰ 10Ⅱ. 63 dynamic planning (simple)
猜你喜欢
Zero basics of C language lesson 7: break & continue
FreeFileSync 文件夹比较与同步软件
量化框架backtrader之一文读懂observer观测器
免费的机器学习数据集网站(6300+数据集)
7.Consul服务注册与发现
Range of types
From Celsius to the three arrows: encrypting the domino of the ten billion giants, and drying up the epic liquidity
windows版MySQL软件的安装与卸载
Build your own PE manually from winpe of ADK
Wechat applet Registration Guide
随机推荐
Basic type of typescript
1075 pat judge (25 points)
Pointer
Introduction to granular computing
C language ---getchar() and putchar()
Matlab programming related knowledge
Pytorch based generation countermeasure Network Practice (7) -- using pytorch to build SGAN (semi supervised GaN) to generate handwritten digits and classify them
SwiftUI找回丢失的列表视图(List)动画
Common operation and Principle Exploration of stream
Experience sharing of mathematical modeling: comparison between China and USA / reference for topic selection / common skills
Codeforces Round #765 (Div. 2) D. Binary Spiders
Formal parameters vs actual parameters
Setup instance of layout manager login interface
Correlation analysis related knowledge
How to convert data in cell cell into data in matrix
同花顺股票开户选哪个证券公司是比较好,比较安全的
hands-on-data-analysis 第三单元 模型搭建和评估
Record: why is there no lightning 4 interface graphics card docking station and mobile hard disk?
Codeforces Global Round 21A~D
9項規定6個嚴禁!教育部、應急管理部聯合印發《校外培訓機構消防安全管理九項規定》