首页 > 代码库 > gvim 常用配置

gvim 常用配置

set nocompatible
set nu!
filetype on 
set history=1000
syntax on 
set autoindent
set ai!
"set bg=dark
set autoindent
set smartindent
set backspace=2 
au BufNewFile,BufRead *.vh setf verilog 
set hlsearch 
set incsearch 
set gdefault 
if has("gui_running")
    set cursorline 
    hi cursorline guibg = #555555
    set cursorcolumn
    hi cursorcolumn guibg = #555555
set shiftwidth=4
set showmatch 
set ruler
set incsearch 
colorscheme desert 

au BufNewFile,BufRead *.f set filetype=verilog 
au BufNewFile,BufRead *.vh set filetype=verilog
au BufNewFile,BufRead *.sv set filetype=verilog 
au BufNewFile,BufRead *.vp set filetype=verilog 
au BufNewFile,BufRead *.svp set filetype=verilog 

 

gvim 常用配置