zoukankan      html  css  js  c++  java
  • VIM配置

    colorscheme ron
    hi TabLineFill ctermbg=grey
    set nu
    set ruler
    set mouse=a
    set ts=4
    set noswapfile
    set autoindent
    set statusline=Delovue 
    autocmd VimEnter * :hi TabLineFill ctermfg=black
    map <F5> <ESC>:w <CR> <ESC>:! g++ % -O2 -o 1 && time ./1<CR>
    map <F6> <ESC>:w <CR> <ESC>:! g++ % -O2 -o 2 && time ./2<a.in<CR>
    map <F7> <ESC>:w <CR> <ESC>:! g++ % -o gg -g && gdb gg<CR>
    map <F8> <ESC>:tabedit .vimrc<CR>
    map <F9> <ESC>:vsp a.in<CR>
    map <C-p> <ESC>:vsp 
    map <C-w> <ESC>:q<CR>
    map <F4> <ESC>:! g++ data.cpp -o data && ./data<CR>
    map <C-a> <ESC>:set autoindent<CR>
    map <C-n> <ESC>:set noautoindent<CR>
    map <C-c> <ESC>:w <CR> <ESC>:! cat %<CR>
    map <C-e> <ESC>:wq<CR>
    map <C-h> <ESC>:tabp<CR>
    map <C-l> <ESC>:tabn<CR>
    map <C-t> <ESC>:tabedit 
    map <C-x> <ESC>:shell<CR>
    map <F3> :call INIT()<CR>
    func INIT()
    	call append(line(".")+1, "#include<cstdio>")
    	call append(line(".")+2, "#include<cmath>")
    	call append(line(".")+3, "#include<cstring>")
    	call append(line(".")+4, "#include<algorithm>")
    	call append(line(".")+5, "using namespace std;")
    	call append(line(".")+6, "")
    	call append(line(".")+7, "const int maxn=1e5+10;")
    	call append(line(".")+8, "")
    	call append(line(".")+9, "#define gc if(++ip==ie)fread(ip=buf,1,SZ,stdin)")
    	call append(line(".")+10, "const int SZ=1<<20;")
    	call append(line(".")+11, "char buf[SZ],*ie=buf+SZ,*ip=ie-1;")
    	call append(line(".")+12, "inline int read(){")
    	call append(line(".")+13, "	gc;while(*ip<'-')gc;")
    	call append(line(".")+14, "	bool f=*ip=='-';if(f)gc;")
    	call append(line(".")+15, "	int x=*ip&15;gc;")
    	call append(line(".")+16, "	while(*ip>'-'){x*=10;x+=*ip&15;gc;}")
    	call append(line(".")+17, "	return f ? -x : x;")
    	call append(line(".")+18, "}")
    	call append(line(".")+19, "")
    endfun
    
    
    
    你有喜欢的女孩子嘛 有温柔的女孩子在等你吗
  • 相关阅读:
    SpringBoot-13-简单整合Dubbo
    SpringBoot-12-整合Redis
    SpringBoot-11-任务
    SpringBoot-10-Swagger
    SpringBoot-09-Apche Shiro
    SpringBoot-08-Spring Security
    五十七-代码审计-JAVA项目框架类漏洞分析报告
    五十六:代码审计-JAVA项目Filter过滤器及XSS挖掘
    五十五:代码审计-JAVA项目注入上传搜索或插件挖掘
    五十四:代码审计-TP5框架审计写法分析及代码追踪
  • 原文地址:https://www.cnblogs.com/Delov/p/15158702.html
Copyright © 2011-2022 走看看