zoukankan      html  css  js  c++  java
  • GVIM 设置 vimrc

    set linespace=4
    set tabstop=4
    set expandtab
    set nobackup
    set nosmartindent
    set noautoindent
    set ruler
    
    au BufRead,BufNewFile *.sv set filetype=systemverilog
    au BufRead,BufNewFile *.vh set filetype=systemverilog
    au BufRead,BufNewFile *.vt set filetype=systemverilog
    au BufRead,BufNewFile *.inc set filetype=systemverilog
    
    set tags=tags;
    "set autochdir
    nnoremap  t :tag
    
    set paste
    
    syntax  on
    filetype  on
    filetype  plugin on
    filetype indent off
    
    set encoding=utf-8
    set fileencodings=utf-8,chinese,latin-1
    if has("win32")
    set fileencoding=chinese
    else
    set fileencoding=utf-8
    endif
    "解决菜单乱码
    source $VIMRUNTIME/delmenu.vim
    source $VIMRUNTIME/menu.vim
    "解决consle输出乱码
    language messages zh_CN.utf-8
    
    
    set guifont=Monospace Regular 14
    colorscheme default
    
    func    Vheader()
        call append(1,  '//===============================================')
        call append(2,  '//  Filename       : '.expand("%"))
        call append(3,  '//  project        : ')
        call append(4,  '//  Department     : ')
        call append(5,  '//  Description    : ')
        call append(6,  '//')
        call append(7,  '//  Author         : wuzhangquan')
        call append(8,  '//  Email          : wzqim@qq.com')
        call append(9,  '//  CreateDate     : '.strftime("%Y-%m-%d %H:%M:%S"))
        call append(10, '//  Reversion      : ')
        call append(11, '//  Release Info   : ')
        call append(12, '//===============================================')
        call append(13, '')
    endfunc
    
    map <F2> :call Vheader()
  • 相关阅读:
    Snuke's Subway Trip
    codevs 1606 台阶
    COGS 2334. [HZOI 2016]最小函数值
    codevs 1052 地鼠游戏
    洛谷 P1091 合唱队形
    洛谷 P1376 机器工厂
    codevs 2618 核电站问题
    vijos 1524 最小监视代价
    洛谷 P1690 贪婪的Copy
    51nod 1135 原根
  • 原文地址:https://www.cnblogs.com/xinlukk/p/10558367.html
Copyright © 2011-2022 走看看