my setup for win7
安装chrome
安装qq
安装mingw 链接
安装gvim 链接
改_vimrc
不能保存就见这 链接
将C:\Program Files (x86)\Vim\vim80写入path,就可以输入gvim打开文件了
我的vimrc
set nocompatible
set number
set relativenumber
set tabstop=4
set nohlsearch
set softtabstop=4
set shiftwidth=4
set smarttab
set autoindent
set smartindent
set cindent
set ruler
set go=
set nobackup
set noswapfile
set wrap
set guifont=Consolas:h18
set noshowmatch
set fileencodings=utf-8,gbk
set autochdir
set autoread
set linebreak
set mouse=a
set fdm=indent
syntax on
set langmenu=en_US
let $LANG= 'en_US'
noremap <F9> <esc>:w<cr>:!del %<<cr>:!g++ % -o %< -Wall -O2 -std=c++11 -DDEBUG<cr>
noremap <F10> <esc>:w<cr>:!%<<cr>
noremap f<F10> <esc>:w<cr>:!%< < %<.in<cr>
inoremap jk <esc>:w<cr>
noremap ;; <esc>:wq<cr>
inoremap jk; <esc>:wq<cr>
noremap ss <esc>:w<cr>
vmap <c-c> "+y
nmap <c-v> "+gp
imap <c-v> <esc>:w<cr>"+gp
set t_Co=256
colorscheme evening
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
if $VIMRUNTIME =~ ' '
if &sh =~ '\<cmd'
if empty(&shellxquote)
let l:shxq_sav = ''
set shellxquote&
endif
let cmd = '"' . $VIMRUNTIME . '\diff"'
else
let cmd = substitute($VIMRUNTIME, ' ', '" ', '') . '\diff"'
endif
else
let cmd = $VIMRUNTIME . '\diff'
endif
silent execute '!' . cmd . ' ' . opt . arg1 . ' ' . arg2 . ' > ' . arg3
if exists('l:shxq_sav')
let &shellxquote=l:shxq_sav
endif
endfunction
set guifont=Courier\ New:h10
set lines=40 columns=170
winpos 0 0

浙公网安备 33010602011771号