C++模板
#include<cstdio>
#include<iostream>
#include<cmath>
#include<cstring>
#include<algorithm>
#include<set>
#include<map>
using namespace std;
#define rep(i,l,r) for(register int i=(l);i<=(r);++i)
#define repdo(i,l,r) for(register int i=(l);i>=(r);--i)
#define il inline
typedef double db;
typedef long long ll;
//---------------------------------------
int n;
int main(){
ios::sync_with_stdio(0),cin.tie(0);
return 0;
}
// freopen(".in","r",stdin);
// freopen(".out","w",stdout);
.vimrc
set nu
set mouse=a
set nocp
set shiftwidth=4 tabstop=4 softtabstop=4
set showmatch
set autoread
let autosave=10
set confirm "confirm for saving changes
set cindent autoindent smartindent
set ignorecase
"set hlsearch
set ruler
set encoding=UTF-8
syntax on
map <c-a> ggVG
imap <c-a> <esc><c-a>
map <c-v> "+p
imap <c-v> <esc><c-v>i
vmap <c-c> "+y
vmap <c-x> "+d
imap <c-e> <esc><c-e>i<right>
imap <c-y> <esc><c-y>i<right>
map <F5> :w<cr>:sp ~/oi/base/gdb.in<cr><c-a><c-c>:q!<cr>:!g++ % -o exec -g3 -std=c++11 -Wall -Wextra && gdb exec <cr>
map <F9> :w<CR>:!g++ % -o exec -O2 -std=c++11 -Wall -Wextra && ./exec <CR>
inoremap ' ''<esc>i
inoremap " ""<esc>i
inoremap ( ()<esc>i
inoremap [ []<esc>i
inoremap { {}<esc>i
原文地址:https://www.cnblogs.com/ubospica/p/9550143.html
时间: 2024-10-30 11:12:21