windows10子系统配置vim
.cmd背景,字体等配置
(1)设置背景颜色
44 50 59
(2)设置字体 大小 颜色
Courier New 20 白色
2.ubuntuvim配置(etc/vim/vimrc):
(1)配置vimrc
"设置当文件被改动时自动载入 set autoread "在左侧行号 set nu "tab长度为4 set tabstop=4 "覆盖文件时不备份 set nobackup "自动缩进 set smartindent "突出显示当前行 "set cursorline "右下角显示光标位置状态 set ruler "自动缩进 set autoindent "设置自动保存 set autowrite "代码补全 "set completeopt=preview,menu "编码设置 set enc=utf-8 set fencs=utf-8,ucs-bom,shift-jis,gb18030,gbk,gb2312,cp936 "语言设置 set langmenu=zh_CN.UTF-8 set helplang=cn "高亮显示匹配的括号 set showmatch "设置为十进制 set nrformats= "设置主题 colorscheme evening
2.配置evening.vim 使vim背景与终端一致(usr\share\vim\vim74\colors)
修改
hi Normal ctermbg=DarkGrey ctermfg=White guifg=White guibg=grey20
为
"将背景颜色设置为black hi Normal ctermbg=Black ctermfg=White guifg=White guibg=grey20
效果截图: