先安装vim的升级版:sudo apt install vim-gtk
然后进入配置文件:vim .vimrc
输入以下命令后保存:
set number
filetype on
set history=1000
set nocompatible
set shiftwidth=4
color evening
syntax on
set autoindent
set smartindent
set tabstop=4
set showmatch
set guioptions-=T
set vb t_vb=
set ruler
set nohls
set incsearch
if has(“vms”)
set nobackup
else
set backup
endif
https://blog.csdn.net/ValDC_Morning/article/details/68967967