zoukankan      html  css  js  c++  java
  • 关于gvim的配置(持续更新)

    ~/gvimrc自定义代码如下:

    1.  其中配色方案用的是自定义配色qiucz.vim,在下一篇博客中将给出配色方案源码

    2.  目前仅包含C的编译运行,之后将陆续添加C++,java,python等语言

     1 """"""""""""""""""""""DESIGN BY MYSELF""""""""""""""""""""""""""""""""
     2 """"""""""""""""""""""“”“”“”2017.1.15""""""""""""""""""""""""""""""""
     3 
     4 " Show the left line number
     5 set nu
     6 
     7 " Grammar highlight
     8 syntax on
     9 
    10 " Show the current line
    11 set cursorline
    12 
    13 " Show the current column
    14 set cursorcolumn
    15 
    16 " Show the current line number on the downright corner 
    17 set ruler
    18 
    19 " backgroud
    20 "set background=dark
    21 
    22 " color
    23 colorscheme qiucz
    24 "murphy
    25 "slate
    26 
    27 " the size of window
    28 set lines=44 columns=72
    29 
    30 " the size and font of words
    31 " ...for Linux
    32 " set guifont=Courier New Bold 12
    33 set guifont=Consolas Bold 12
    34 " ...for Windows
    35 " set guifont=Consolas:h14:cANSI
    36 
    37 " about Chinese characters
    38 set fenc=gbk
    39 
    40 " Wipe out the 'poor Uganda children' on the surface
    41 set shortmess=atl
    42 ":h shortmess 
    43 
    44 " set tab
    45 set tabstop=4  
    46 
    47 
    48 """""""""""""""""""""""""""""COMPILE AND RUN""""""""""""""""""
    49 
    50 " <F5> compile and run for C  
    51 map <F5> :call CompileRunGcc()<CR>  
    52 func! CompileRunGcc()  
    53 exec "w"  
    54 exec "!gcc % -o %<"  
    55 "exec ":!gnome-terminal -x bash -c './%<;read'"
    56 exec "!gnome-terminal -e ./%<" 
    57 endfunc
    View Code

    效果图

        

  • 相关阅读:
    [bzoj1500][luogu2042][cogs339][codevs1758]维修数列(维护数列)
    无旋treap的简单思想以及模板
    [hdu2036]改革春风吹满地
    (treap)[bzoj3224][洛谷3369][cogs1829]Tyvj 1728 普通平衡树
    [bzoj3875][Ahoi2014]骑士游戏
    [bzoj1433][ZJOI2009]假期的宿舍
    <struct、union、enum>差异
    LeetCode(50) Pow(x,n)
    LeetCode(49)Group Anagrams
    LeetCode(48)Rotate Image
  • 原文地址:https://www.cnblogs.com/wkxnk/p/6509501.html
Copyright © 2011-2022 走看看