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


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值