VIM 配置
set go= cin nu ts=4 sw=4 sts=4 noswapfile nobackup acd et cursorline set backspace=eol,start,indent syntax on set lines=90 columns=80 map <F4> :!g++ -o2 -std=c++11 % -o %<<cr> map <F5> :!%<<cr> map <F3> :!javac %<cr> map <F2> :!java %<<cr> map <C-A> ggVG"+y set guifont=Consolas:h13 "set guifont=courier_new:h12:b "colorscheme evening colorscheme molokai map <C-C> "+y map <C-V> "+p nmap <C-S> :update<CR> imap <C-S> <C-O>:update<CR> imap <C-Z> <C-O>u map <C-Z> u map <F1> :call SetTitle()<CR> func SetTitle() let l = 0 let l = l + 1 | call setline(l,'/************************************************') let l = l + 1 | call setline(l,'* Author :Powatr') 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 <cstdio>') let l = l + 1 | call setline(l,'#include <algorithm>') let l = l + 1 | call setline(l,'#include <iostream>') let l = l + 1 | call setline(l,'#include <sstream>') let l = l + 1 | call setline(l,'#include <cstring>') let l = l + 1 | call setline(l,'#include <cmath>') let l = l + 1 | call setline(l,'#include <string>') 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 <deque>') let l = l + 1 | call setline(l,'#include <stack>') let l = l + 1 | call setline(l,'#include <list>') let l = l + 1 | call setline(l,'#include <map>') let l = l + 1 | call setline(l,'#include <set>') let l = l + 1 | call setline(l,'#include <bitset>') let l = l + 1 | call setline(l,'#include <cstdlib>') let l = l + 1 | call setline(l,'#include <ctime>') let l = l + 1 | call setline(l,'using namespace std;') let l = l + 1 | call setline(l,'') let l = l + 1 | call setline(l,'#define lson l, mid, rt << 1') let l = l + 1 | call setline(l,'#define rson mid + 1, r, rt << 1 | 1') let l = l + 1 | call setline(l,'typedef long long ll;') let l = l + 1 | call setline(l,'const int MAXN = 1e5 + 10;') let l = l + 1 | call setline(l,'const int INF = 0x3f3f3f3f;') let l = l + 1 | call setline(l,'const int MOD = 1e9 + 7;') 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,'') endfunc