首页 > 系统服务 > 详细

关于gvim的配置(持续更新)

时间:2017-03-06 15:07:18      阅读:184      评论:0      收藏:0      [点我收藏+]

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

 

效果图

技术分享

 

技术分享

关于gvim的配置(持续更新)

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

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!