关于vim的配置以及相关插件(备忘)

关于vimrc:

"空格代替tab
set ts=4
set expandtab

"显示行号
set number

set nocompatible
filetype on

"语法高亮
syntax on

"设置匹配模式
set showmatch

set ruler
set tabstop=4
set softtabstop=4
set shiftwidth=4
"自动缩进
set autoindent
"将系统剪切板作为默认的reg
set clipboard=unnamedplus

set fileencoding=utf-8,gbk



some tips:

对于已保存的文件,可以使用下面的方法进行空格和TAB的替换:
TAB替换为空格:
:set ts=4
:set expandtab
:%retab!

空格替换为TAB:
:set ts=4
:set noexpandtab
:%retab!

关于插件:

(待续)

原文地址:https://www.cnblogs.com/whoiskevin/p/2577111.html