//vim 相关 set nu set showmatch set autoindent set smartindent set ruler set incsearch set tabstop=4 set shiftwidth=4 set cindent set clipboard+=unnamed syntax on set nocompatible set showcmd set ignorecase set novisualbell set laststatus=2 set mouse=a let Tlist_Use_Right_Window=1
编译、语言
//编译配置 map <F6> :call CR()<CR> func! CR() exec "w" exec "!g++ % -o %<" exec "! ./%<" endfunc map <F2> :call SetTitle()<CR> func SetTitle() let l = 0 let l = l + 1 | call setline(l,‘#include <stdio.h>‘) let l = l + 1 | call setline(l,‘#include <string.h>‘) let l = l + 1 | call setline(l,‘#include <iostream>‘) let l = l + 1 | call setline(l,‘#include <algorithm>‘) 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 <set>‘) let l = l + 1 | call setline(l,‘#include <map>‘) let l = l + 1 | call setline(l,‘#include <math.h>‘) let l = l + 1 | call setline(l,‘#include <string>‘) let l = l + 1 | call setline(l,‘#include <stdlib.h>‘) let l = l + 1 | call setline(l,‘#include <time.h>‘) 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,‘ //freopen("in.txt","r",stdin);‘) let l = l + 1 | call setline(l,‘ //freopen("out.txt","w",stdout);‘) let l = l + 1 | call setline(l,‘ ‘) let l = l + 1 | call setline(l,‘ return 0;‘) let l = l + 1 | call setline(l,‘}‘) endfunc
时间: 2024-10-22 09:08:14