首页 > 代码库 > vi配置文件
vi配置文件
set nocompatiblesource $VIMRUNTIME/vimrc_example.vimsource $VIMRUNTIME/mswin.vimbehave mswin" 新添的配置信息set lines=40 columns=155 " 设定窗口大小 set nu " 显示行号 syntax on " 语法高亮 colorscheme koehler " 设置配色方案set cursorline " 突出显示当前行set autowrite " 自动保存set ruler " 打开状态栏标尺set cursorline " 突出显示当前行set magic " 设置魔术set guioptions-=T " 隐藏工具栏set guioptions-=m " 隐藏菜单栏set nobackup " 禁止生成临时文件set laststatus=1set noswapfileset tabstop=4set autoindentset cindentset softtabstop=4set shiftwidth=4set guifont=Courier_New:h16:cANSI " 设置字体"set encoding=utf-8 " 设置字符编码set fencs=utf-8,ucs-bom,shift-jis,gb18030,gbk,gb2312,cp936"set termencoding=utf-8"set encoding=utf-8"set fileencodings=ucs-bom,utf-8,cp936"set fileencoding=utf-8set diffexpr=MyDiff()function MyDiff() let opt = ‘-a --binary ‘ if &diffopt =~ ‘icase‘ | let opt = opt . ‘-i ‘ | endif if &diffopt =~ ‘iwhite‘ | let opt = opt . ‘-b ‘ | endif let arg1 = v:fname_in if arg1 =~ ‘ ‘ | let arg1 = ‘"‘ . arg1 . ‘"‘ | endif let arg2 = v:fname_new if arg2 =~ ‘ ‘ | let arg2 = ‘"‘ . arg2 . ‘"‘ | endif let arg3 = v:fname_out if arg3 =~ ‘ ‘ | let arg3 = ‘"‘ . arg3 . ‘"‘ | endif let eq = ‘‘ if $VIMRUNTIME =~ ‘ ‘ if &sh =~ ‘\<cmd‘ let cmd = ‘""‘ . $VIMRUNTIME . ‘\diff"‘ let eq = ‘"‘ else let cmd = substitute($VIMRUNTIME, ‘ ‘, ‘" ‘, ‘‘) . ‘\diff"‘ endif else let cmd = $VIMRUNTIME . ‘\diff‘ endif if (has("gui_running")) set guifont=Bitstream\ Vera\ Sans\ Mono\ 20 endif silent execute ‘!‘ . cmd . ‘ ‘ . opt . arg1 . ‘ ‘ . arg2 . ‘ > ‘ . arg3 . eqendfunction
vi配置文件
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。