首页 > 代码库 > vim 配置,我本机的配置
vim 配置,我本机的配置
set nocompatiblesource $VIMRUNTIME/vimrc_example.vimsource $VIMRUNTIME/mswin.vimbehave mswinset nobackupset diffexpr=MyDiff()function MyDiff()let opt = ‘-a --binary ‘if &diffopt =~ ‘icase‘ | let opt = opt . ‘-i ‘ | endifif &diffopt =~ ‘iwhite‘ | let opt = opt . ‘-b ‘ | endiflet arg1 = v:fname_inif arg1 =~ ‘ ‘ | let arg1 = ‘"‘ . arg1 . ‘"‘ | endiflet arg2 = v:fname_newif arg2 =~ ‘ ‘ | let arg2 = ‘"‘ . arg2 . ‘"‘ | endiflet arg3 = v:fname_outif arg3 =~ ‘ ‘ | let arg3 = ‘"‘ . arg3 . ‘"‘ | endiflet eq = ‘‘if $VIMRUNTIME =~ ‘ ‘if &sh =~ ‘\<cmd‘let cmd = ‘""‘ . $VIMRUNTIME . ‘\diff"‘let eq = ‘"‘elselet cmd = substitute($VIMRUNTIME, ‘ ‘, ‘" ‘, ‘‘) . ‘\diff"‘endifelselet cmd = $VIMRUNTIME . ‘\diff‘endifsilent execute ‘!‘ . cmd . ‘ ‘ . opt . arg1 . ‘ ‘ . arg2 . ‘ > ‘ . arg3 . eqendfunction"显示行号set nu!colorscheme desert syntax enable syntax onset encoding=utf-8set fileencodings=utf-8,chinese,latin-1if has("win32")set fileencoding=chineseelseset fileencoding=utf-8endif"解决菜单乱码source $VIMRUNTIME/delmenu.vimsource $VIMRUNTIME/menu.vim"解决consle输出乱码language messages zh_CN.utf-8"NERDTree快捷键nmap <F2> :NERDTree <CR>" NERDTree.vimlet g:NERDTreeWinPos="left"let g:NERDTreeWinSize=25let g:NERDTreeShowLineNumbers=1let g:neocomplcache_enable_at_startup = 1"默认最大化窗口打开au GUIEnter * simalt ~x"设置tab缩进set smarttabset tabstop=4set shiftwidth=4set expandtab
vim 配置,我本机的配置
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。