gvim启动设定

colorscheme asmanian2

set nu

map <C-c> "+y

map <C-v> "+p

map <C-s> :w<CR>

syntax on

set tabstop=4

set softtabstop=4

set shiftwidth=4

set autoindent

set cindent

set cinoptions={0,1s,t0,n-2,p2s,(03s,=.5s,>1s,=1s,:1s

if &term=="xterm"

set t_Co=8

             set t_Sb=^[[4%dm

set t_Sf=^[[3%dm

endif

set tags=tags

set autochdir

let Tlist_Show_One_File=1

let Tlist_Exit_OnlyWindow=1

let g:winManagerWindowLayout='FileExplorer|TagList'

nmap wm :WMToggle<cr>

let g:miniBufExplMapCTabSwitchBufs=1

let g:miniBufExplMapWindowsNavVim=1

let g:miniBufExplMapWindowNavArrows=1

set nowrap "不自动换行

nnoremap <silent> <F12> :A<CR>

nnoremap <silent> <F3> :Grep<CR>



if has("multi_byte")

    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

        source $VIMRUNTIME/mswin.vim

        behave mswin

        language messages zh_CN.utf-8 "处理consle输出乱码

    endif

	

else

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

endif

  

你可能感兴趣的:(vim)