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()