~/gvimrc自定义代码如下:
1. 其中配色方案用的是自定义配色qiucz.vim,在下一篇博客中将给出配色方案源码
2. 目前仅包含C的编译运行,之后将陆续添加C++,java,python等语言
""""""""""""""""""""""DESIGN BY MYSELF"""""""""""""""""""""""""""""""" """"""""""""""""""""""“”“”“”2017.1.15"""""""""""""""""""""""""""""""" " Show the left line number set nu " Grammar highlight syntax on " Show the current line set cursorline " Show the current column set cursorcolumn " Show the current line number on the downright corner set ruler " backgroud "set background=dark " color colorscheme qiucz "murphy "slate " the size of window set lines=44 columns=72 " the size and font of words "set guifont=Consolas\ Bold\ 12 set guifont=Courier\ New\ Bold\ 12 " about Chinese characters set fenc=gbk " Wipe out the ‘poor Uganda children‘ on the surface set shortmess=atl ":h shortmess " set tab set tabstop=4 """""""""""""""""""""""""""""COMPILE AND RUN"""""""""""""""""" " <F5> compile and run for C map <F5> :call CompileRunGcc()<CR> func! CompileRunGcc() exec "w" exec "!gcc\ %\ -o\ %<" "exec ":!gnome-terminal -x bash -c ‘./%<;read‘" exec "!gnome-terminal\ -e\ ./%<" endfunc
效果图


原文:http://www.cnblogs.com/qiucz/p/6509501.html