windows下vim配色方案

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

你可能感兴趣的:(技术细节)