码迷,mamicode.com
首页 > 系统相关 > 详细

vim 配置

时间:2015-07-26 11:07:46      阅读:165      评论:0      收藏:0      [点我收藏+]

标签:

编码要为unicode

set go= cin nu ts=4 sw=4 sts=4 noswapfile nobackup acd et cursorline
set backspace=eol,start,indent
syntax on

map <F4> :!g++ -o2 -std=c++11 % -o %<<cr>
map <F5> :!%<<cr>

map <F3> :!javac %<cr>
map <F2> :!java %<<cr>

map <C-A> ggVG"+y

set guifont=Consolas:h13

colorscheme solarized

map <F2> :call SetTitle()<CR>
func SetTitle()
    let l = 0
    let l = l + 1 | call setline(l,‘/* **********************************************‘)
    let l = l + 1 | call setline(l,‘Auther: 请叫我acm渣渣‘)
    let l = l + 1 | call setline(l,‘Created Time: ‘.strftime(‘%c‘))
    let l = l + 1 | call setline(l,‘File Name   : ‘.expand(‘%‘))
    let l = l + 1 | call setline(l,‘*********************************************** */‘)
    let l = l + 1 | call setline(l, ‘#include <iostream>‘)
    let l = l + 1 | call setline(l, ‘#include <fstream>‘)
    let l = l + 1 | call setline(l, ‘#include <cstring>‘)
    let l = l + 1 | call setline(l, ‘#include <climits>‘)
    let l = l + 1 | call setline(l, ‘#include <deque>‘)
    let l = l + 1 | call setline(l, ‘#include <cmath>‘)
    let l = l + 1 | call setline(l, ‘#include <queue>‘)
    let l = l + 1 | call setline(l, ‘#include <stack>‘)
    let l = l + 1 | call setline(l, ‘#include <list>‘)
    let l = l + 1 | call setline(l, ‘#include <map>‘)
    let l = l + 1 | call setline(l, ‘#include <set>‘)
    let l = l + 1 | call setline(l, ‘#include <utility>‘)
    let l = l + 1 | call setline(l, ‘#include <sstream>‘)
    let l = l + 1 | call setline(l, ‘#include <complex>‘)
    let l = l + 1 | call setline(l, ‘#include <string>‘)
    let l = l + 1 | call setline(l, ‘#include <vector>‘)
    let l = l + 1 | call setline(l, ‘#include <cstdlib>‘)
    let l = l + 1 | call setline(l, ‘#include <cstdio>‘)
    let l = l + 1 | call setline(l, ‘#include <ctime>‘)
    let l = l + 1 | call setline(l, ‘#include <bitset>‘)
    let l = l + 1 | call setline(l, ‘#include <functional>‘)
    let l = l + 1 | call setline(l, ‘#include <algorithm>‘)
        let l = l + 1 | call setline(l, ‘using namesapce std;‘)
        let l = l + 1 | call setline(l, ‘#define lson L,m,rt<<1‘)
        let l = l + 1 | call setline(l, ‘#define rson m+1,R,rt<<1|1‘)
        let l = l + 1 | call setline(l, ‘#define ll long long‘)
        let l = l + 1 | call setline(l, ‘#define N 11111‘) 
endfunc  

版权声明:都是兄弟,请随意转载,请注明兄弟是谁

vim 配置

标签:

原文地址:http://blog.csdn.net/u013076044/article/details/47065953

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!