gvim 环境设置

配置文件:.gvimrc
内容如下:
#start----------------------------------------------------------------------------------------------------------
source ~/perl_format.rc
source ~/sv_format.rc
set title
“open mouse”
set mouse=a
“set Tab”
set tabstop=4
“set auto retract”
set ai
filetype indent on
“set softtabstop=4”
“set shiftwidth=4”
“set noexpandtab”
autocmd Filetype verilog setlocal tabstop=4 softtabstop=4 shiftwidth=4 expandtab
autocmd Filetype systemverilog setlocal tabstop=4 softtabstop=4 shiftwidth=4 expandtab
autocmd Filetype perl setlocal tabstop=4 softtabstop=4 shiftwidth=4 expandtab
autocmd Filetype python setlocal tabstop=4 softtabstop=4 shiftwidth=4 expandtab

set ic
“close auto annotation”
set fo-=r
“set the alignment line of colum and row”
set cursorcolum
hi CursorColum cterm=None ctermbg=darkgray ctermfg=white guibg=darkgray guifg=blue
set cursorline
hi Cursorline cterm=None ctermbg=darkgray ctermfg=white guibg=darkgray guifg=blue

colorscheme desert
set guifont=Monospace\ 16
“set code fold”
set foldmethod=marker
#end------------------------------------------------------------------------------------------------------------------
调用文件:sv_format.rc,只列举部分内容,其他按此格式即可
#start-----------------------------------------------------------------------------------------------------------------
:iab svmodue //Description: module ();endmodule
:iab svclass //Description:class ;endclass
:iab svif if() beginend
#end------------------------------------------------------------------------------------------------------------------

你可能感兴趣的:(Linux,vi/vim,Perl,SystemVerilog)