当前位置:网站首页>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 了
边栏推荐
猜你喜欢

array

8.Ribbon负载均衡服务调用

Installation and uninstallation of MySQL software for windows

Hands on data analysis unit 3 model building and evaluation

Sword finger offer 05.58 Ⅱ string

Tips for using nexys A7 development board resources

Cloudcompare - Poisson reconstruction

8. Ribbon load balancing service call

Win10 home vs pro vs enterprise vs enterprise LTSC

Reprint - easy to use wechat applet UI component library
随机推荐
C language | file operation and error prone points
Assert and constd13
Online bull Blogger
d的is表达式
爱可可AI前沿推介(6.26)
Pointer
近期比较重要消息
8. Ribbon load balancing service call
Jenkins build prompt error: eacces: permission denied
MySQL | basic commands
Never use redis expired monitoring to implement scheduled tasks!
Svn commit error after deleting files locally
Setup instance of layout manager login interface
Obtain information about hard disk and volume or partition (capacity, ID, volume label name, etc.)
Sword finger offer 05.58 Ⅱ string
SwiftUI找回丢失的列表视图(List)动画
虫子 STL string上
BP neural network for prediction
7.consul service registration and discovery
Self created notes (unique in the whole network, continuously updated)