zoukankan      html  css  js  c++  java
  • _vimrc配置

    set nocompatible
    set encoding=utf8
    set guioptions-=T
    
    set number
    set guifont=consolas:h12
    
    source $VIMRUNTIME/delmenu.vim
    source $VIMRUNTIME/menu.vim
    
    filetype off
    filetype plugin indent on
    syntax on
    
    set tabstop=4
    set softtabstop=4
    set shiftwidth=4
    set shiftround
    set expandtab
    
    set nobackup
    set noswapfile
    set nowritebackup
    
    set ignorecase
    set smartcase
    
    "set cursorline
    set foldmethod=manual
    
    set langmenu=en_US
    let $LANG = 'en_US'
    
    set scrolloff=5
    
    
    
    autocmd filetype python nnoremap <F5> :w! <bar> exec '!python '.shellescape('%')<CR>
    autocmd filetype vb nnoremap <F5> :w! <bar> exec '!wscript '.shellescape('%')<CR>
    autocmd filetype java nnoremap <F5> :w!<CR> :!javac %<cr> :!java %:r<cr>
    
    filetype plugin on
    let g:pydiction_location = "D:code_mtlPydictioncomplete-dict"
    
    source $VIMRUNTIME/vimrc_example.vim
    source $VIMRUNTIME/mswin.vim
    behave mswin
    
    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
      silent execute '!' . cmd . ' ' . opt . arg1 . ' ' . arg2 . ' > ' . arg3 . eq
    endfunction
  • 相关阅读:
    DOM
    笔试题
    小案例
    前端基础面试题
    2048小游戏
    JS原型与构造函数
    String字符串和正则表达式
    数组
    MySQL_PHP学习笔记_2015_0906_使用PHP模板
    MySQL_PHP学习笔记_2015_0614_PHP传参总结_URL传参_表单传参
  • 原文地址:https://www.cnblogs.com/vickey-wu/p/8269117.html
Copyright © 2011-2022 走看看