my setup for win7
阿新 • • 發佈:2018-02-13
number ade .cn break odin top down chdir esc
安裝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>:!rm %<<cr>:!g++ % -o %< -Wall -O2 -std=c++11 -DDEBUG--stack=268435456<cr>:!time ./%<<cr> noremap g<F9> <esc>:w<cr>:!rm %<<cr>:!g++ % grader.cpp -o %< -Wall -O2 -std=c++11 -DDEBUG--stack=268435456<cr>:!time ./%<<cr> noremap f<F9> <esc>:w<cr>:!rm %<<cr>:!g++ % -o %< -Wall -O2 -std=c++11 -DDEBUG--stack=268435456<cr>:!time ./%< < %<.in<cr> noremap gf<F9> <esc>:w<cr>:!rm %<<cr>:!g++ % grader.cpp -o %< -Wall -O2 -std=c++11 -DDEBUG--stack=268435456<cr>:!time ./%< < %<.in<cr> noremap <F10> <esc>:w<cr>:!time ./%<<cr> noremap f<F10> <esc>:w<cr>:!time ./%< < %<.in<cr> inoremap jk <esc>:w<cr> noremap ;; <esc>:wq<cr> inoremap jk; <esc>:wq<cr> noremap <F5> <esc>:w<cr>:!gedit %<.in<cr> noremap ss <esc>:w<cr> noremap <F8> <esc>:w<cr>:!python %<cr> vmap <c-c> "+y nmap <c-v> "+gp imap <c-v> <esc>:w<cr>"+gp set t_Co=256 colorscheme monokai autocmd BufNewFile,BufRead * :syntax match cfunctions "\<[a-zA-Z_][a-zA-Z_0-9]*\>[^()]*)("me=e-2 autocmd BufNewFile,BufRead * :syntax match cfunctions "\<[a-zA-Z_][a-zA-Z_0-9]*\>\s*("me=e-1 hi cfunctions ctermfg=81 hi Type ctermfg=118 cterm=none hi Structure ctermfg=118 cterm=none hi Macro ctermfg=161 cterm=bold hi PreCondit ctermfg=161 cterm=bold set cursorline
my setup for win7