您的位置:首页 > 其它

windows下vim配色方案

2017-06-24 09:59 363 查看
set nocompatible

source $VIMRUNTIME/vimrc_example.vim

source $VIMRUNTIME/mswin.vim

behave mswin

if has("multi_byte")

" UTF-8 编码

set encoding=utf-8

set termencoding=utf-8

set formatoptions+=mM

set fencs=utf-8,gbk

if v:lang =~? '^/(zh/)/|/(ja/)/|/(ko/)'

set ambiwidth=double

endif

if has("win32")

source $VIMRUNTIME/delmenu.vim

source $VIMRUNTIME/menu.vim

language messages zh_CN.utf-8

endif

else

echoerr "Sorry, this version of (g)vim was not compiled with +multi_byte"

endif

:colorscheme desert

:set guifont=consolas:h14

:set nu!

syntax enable

syntax on

set ai

hi LineNr guifg=LightBlue

set tabstop=4

set softtabstop=4

set shiftwidth=4

autocmd InsertEnter * se cul

set whichwrap+=<,>,h,l "允许跨越行边界

set gcr=a:block-blinkon0

if &term=="xterm"

set t_Co=8

set t_Sb=^[[4%dm

set t_Sf=^[[3%dm

endif
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: