C + + templates,. VIMRC, and some Linux configurations

Source: Internet
Author: User

C + + templates
#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 inlinetypedef 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 nuset mouse=aset nocpset shiftwidth=4 tabstop=4 softtabstop=4set showmatchset autoreadlet autosave=10set confirm "confirm for saving changesset cindent autoindent smartindentset ignorecase"set hlsearchset rulerset encoding=UTF-8syntax onmap  <c-a> ggVGimap <c-a> <esc><c-a>map  <c-v> "+pimap <c-v> <esc><c-v>ivmap <c-c> "+yvmap <c-x> "+dimap <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>iinoremap " ""<esc>iinoremap ( ()<esc>iinoremap [ []<esc>iinoremap { {}<esc>i

C + + templates,. VIMRC, and some Linux configurations

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.