当前位置:网站首页>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 了
边栏推荐
- Use performance to see what the browser is doing
- windows版MySQL软件的安装与卸载
- Common controls and custom controls
- Introduction to 26 papers related to CVPR 2022 document image analysis and recognition
- 9 articles, 6 interdits! Le Ministère de l'éducation et le Ministère de la gestion des urgences publient et publient conjointement neuf règlements sur la gestion de la sécurité incendie dans les établ
- Memory considerations under bug memory management
- New specification of risc-v chip architecture
- 免费的机器学习数据集网站(6300+数据集)
- 9项规定6个严禁!教育部、应急管理部联合印发《校外培训机构消防安全管理九项规定》
- Sword finger offer 15.65.56 I 56Ⅱ. Bit operation (simple - medium)
猜你喜欢

Jianzhi offer 43.47.46.48 dynamic planning (medium)

Codeforces Global Round 21A~D

Build your own PE manually from winpe of ADK

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

从Celsius到三箭:加密百亿巨头们的多米诺,史诗级流动性的枯竭

Knowledge about the determination coefficient R2 and the relationship with the correlation coefficient

Related knowledge of libsvm support vector machine

A must for programmers, an artifact utools that can improve your work efficiency n times

Common operation and Principle Exploration of stream

Eigen(3):error: ‘Eigen’ has not been declared
随机推荐
Svn commit error after deleting files locally
虫子 类和对象 中
[scoi2016] lucky numbers
In insect classes and objects
Global variable vs local variable
Codeforces Global Round 21A~D
Why is there always a space (63 or 2048 sectors) in front of the first partition when partitioning a disk
常用控件及自定义控件
Formal parameters vs actual parameters
Generation and rendering of VTK cylinder
Linear basis
Sword finger offer 06.24.35 Linked list
2021-10-18 character array
Bucket of P (segment tree + linear basis)
Comparison of disk partition modes (MBR and GPT)
Common controls and custom controls
[path of system analyst] Chapter 15 double disk database system (database case analysis)
Matlab programming related knowledge
Online bull Blogger
数学建模经验分享:国赛美赛对比/选题参考/常用技巧