GVIM配置

赶快上传一下不然明天麻烦= =

set history=1000000
set tabstop=4
set shiftwidth=4
set smarttab
set guifont=Courier:h15
set nocompatible
set syntax=on 
syntax on

set number
set cindent
 
colo murphy 
 
set showcmd
 
set nobackup
set noswapfile
 
set mouse=a
 
nmap <c-c> "+y
nmap <c-v> "+gp
 
map <F6> :call CR()<CR>
func! CR()
exec "w"
exec "!g++ -O2 -g  % -o %<"
exec "! %<"
endfunc
 
imap <c-]> {<cr>}<c-o>O<left><right>
 
map <C-A> ggVG"+y
 
 
"inoremap ( ()<LEFT>
"inoremap [ []<LEFT>
"inoremap { {}<LEFT>
"inoremap " ""<LEFT>
"inoremap ' ''<LEFT>
 
 
map <F2> :call SetTitle()<CR>
func SetTitle()
let l = 0
let l = l + 1 | call setline(l,'/* ***********************************************')
let l = l + 1 | call setline(l,'Author        :BPM136')
let l = l + 1 | call setline(l,'Created Time  :'.strftime('%c'))
let l = l + 1 | call setline(l,'File Name     :'.expand('%'))
let l = l + 1 | call setline(l,'************************************************ */')
let l = l + 1 | call setline(l,'')
 
let l = l + 1 | call setline(l,'#include<stdio.h>')
let l = l + 1 | call setline(l,'#include<string.h>')
let l = l + 1 | call setline(l,'#include<iostream>')
let l = l + 1 | call setline(l,'#include<algorithm>')
let l = l + 1 | call setline(l,'#include<vector>')
let l = l + 1 | call setline(l,'#include<queue>')
let l = l + 1 | call setline(l,'#include<set>')
let l = l + 1 | call setline(l,'#include<map>')
let l = l + 1 | call setline(l,'#include<string>')
let l = l + 1 | call setline(l,'#include<math.h>')
let l = l + 1 | call setline(l,'#include<stdlib.h>')
let l = l + 1 | call setline(l,'#include<time.h>')
let l = l + 1 | call setline(l,'#define LL long long')
let l = l + 1 | call setline(l,'#define fo(i,a,b) for(int i=a;i<=b;i++)')
let l = l + 1 | call setline(l,'#define dfo(i,a,b) for(int i=a;i>=b;i--)')
let l = l + 1 | call setline(l,'#define efo(i,x) for(int i=last[x];i!=0;i=e[i].next)')
let l = l + 1 | call setline(l,'using namespace std;')
let l = l + 1 | call setline(l,'LL read()')
let l = l + 1 | call setline(l,'{')
let l = l + 1 | call setline(l,'     LL d=0,f=1;char s=getchar();')
let l = l + 1 | call setline(l,'     while(s<48||s>57){if(s==45)f=-1;s=getchar();}')
let l = l + 1 | call setline(l,'     while(s>=48&&s<=57){d=d*10+s-48;s=getchar();}')
let l = l + 1 | call setline(l,'     return d*f;')
let l = l + 1 | call setline(l,'}')
let l = l + 1 | call setline(l,'')
let l = l + 1 | call setline(l,'int main()')
let l = l + 1 | call setline(l,'{')
let l = l + 1 | call setline(l,'    //freopen(".in","r",stdin);')
let l = l + 1 | call setline(l,'    //freopen(".out","w",stdout);')
let l = l + 1 | call setline(l,'    ')
let l = l + 1 | call setline(l,'    return 0;')
let l = l + 1 | call setline(l,'}')
endfunc


你可能感兴趣的:(vim)