C++模板、.vimrc和一些Linux配置

2021-07-11 22:08

阅读:643

标签:g++   return   gis   def   sea   tin   sof   stop   vim   

C++模板

#include
#include
#include
#include
#include
#include
#include
using namespace std;
#define rep(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   ggVG
imap 
map   "+p
imap i
vmap  "+y
vmap  "+d
imap i
imap i

map  :w:sp ~/oi/base/gdb.in:q!:!g++ % -o exec -g3 -std=c++11 -Wall -Wextra && gdb exec 
map  :w:!g++ % -o exec -O2 -std=c++11 -Wall -Wextra && ./exec 

inoremap ' ''i
inoremap " ""i
inoremap ( ()i
inoremap [ []i
inoremap { {}i

C++模板、.vimrc和一些Linux配置

标签:g++   return   gis   def   sea   tin   sof   stop   vim   

原文地址:https://www.cnblogs.com/ubospica/p/9550143.html


评论


亲,登录后才可以留言!