zoukankan      html  css  js  c++  java
  • vi配置文件

    set nocompatible
    source $VIMRUNTIME/vimrc_example.vim
    source $VIMRUNTIME/mswin.vim
    behave 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=1
    set noswapfile
    set tabstop=4
    set autoindent
    set cindent
    set softtabstop=4
    set shiftwidth=4
    
    set 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-8
    
    
    
    
    
    set 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 . eq
    endfunction
    
  • 相关阅读:
    php截取字符串
    PHP数据类型转换(字符转数字,数字转字符)
    php数组添加元素的方法
    更改jdk后,eclipse运行jsp出错
    U盘启动装完系统后 一拔下优盘 就不能进入系统
    SVN回滚版本
    在JSP中如何使用JavaBean
    Python使用numpy实现BP神经网络
    神经网络测试结果很差,该怎么做
    神经网络测试结果很差,该怎么做
  • 原文地址:https://www.cnblogs.com/liwuming/p/3943907.html
Copyright © 2011-2022 走看看