码迷,mamicode.com
首页 > 系统相关 > 详细

_vimrc配置

时间:2018-01-11 17:37:56      阅读:172      评论:0      收藏:0      [点我收藏+]

标签:esc   hit   function   exe   toc   line   else   gui   javac   

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_mtl\Pydiction\complete-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

 

_vimrc配置

标签:esc   hit   function   exe   toc   line   else   gui   javac   

原文地址:https://www.cnblogs.com/vickey-wu/p/8269117.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!