一、序言
本文针对是对于嵌入式开发者,个人而言比较好用一些的配置版本
二、使用方法
在家目录中添加**.vimrc**文件,将配置添加进去即可。
三、.vimrc配置文件
除了一些基础配置以外,还添加了一些好用的插件:Vundle、ctags、cscope等。使用效果图如下:
" Author: Pitnitus
" Created: 2022-01-01
" LastChange: 2022-05-08
"iGENERAL SETTINGS: {
{
{
1
" To use VIM settings, out of VI compatible mode.
set nocompatible
" Enable file type detection.
filetype plugin indent on
" Syntax highlighting.
syntax on
" Setting colorscheme
" Other settings.
set autoindent
set autoread
set autowrite
set background=dark
set backspace=indent,eol,start
set nobackup
set cindent
set cinoptions=:0
set cursorline
set completeopt=longest,menuone
set noexpandtab
set fileencodings=utf-8,gb2312,gbk,gb18030
set fileformat=unix
set foldenable
set foldmethod=marker
set guioptions-=T
set guioptions-=m
set guioptions-=r
set guioptions-=l
set helpheight=10
set helplang=cn
set hidden
"set history=100
set hlsearch
set ignorecase
set incsearch
set laststatus=2
set mouse-=a
set number
set paste
set pumheight=10
set ruler
set scrolloff=5
set shiftwidth=4
set showcmd
set smartindent