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

vim 配置文件——部分配置

时间:2016-05-09 18:36:04      阅读:202      评论:0      收藏:0      [点我收藏+]

标签:

//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

 

vim 配置文件——部分配置

标签:

原文地址:http://www.cnblogs.com/chengsheng/p/5474842.html

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