【脚本篇】---vim环境配置

set nocompatible
syntax on
colorscheme desert
set guifont=Courier\ 10\ Pitch\ 13
set number
set cursorline
set cursorcolumn
set ruler
set nobackup
set backupcopy=yes
if has("gui_running")
   set autochdir
endif
filetype plugin indent on
set ignorecase smartcase
set hlsearch
set incsearch
set noerrorbells
set  novisualbell
set showmatch
set matchtime=1
set history=100
set magic
set hidden
set smartindent
set autoindent
set backspace=indent,eol,start
set cmdheight=1
set laststatus=1
set statusline=[%F]%l*%M%*%n%R%H%=\ %y\ %0(%{&fileformat}\ %{&encoding}\ %c:%l%L%)\
"set statusline=\ %<%F[%1*%M%*%n%R%H]%=\ %y\ %0(%{&fileformat}\ %{&encoding}\ %c:%1%L%)\
let NERDSpaceDelims=1
let NERDCompactSexyComs=1
set linebreak
set whichwrap+=<,>,h,l
set scrolloff=3
set confirm
set wrap
winsize 300 400

set expandtab
set softtabstop=4
set tabstop=4
set shiftwidth=4

au BufRead,BufNewFile, *.v    set filetype=verilog
au BufRead,BufNewFile, *.vh   set filetype=verilog
au BufRead,BufNewFile, *.sv   set filetype=verilog
au BufRead,BufNewFile, *.svh  set filetype=verilog

用gvim打开.v文件如下所示:

相关推荐
flysnow01039 分钟前
Linux CMakeLists编写之可执行程序
linux·cmake
乐吾乐科技41 分钟前
【国产开源可视化引擎Meta2d.js】锚点
前端·编辑器·web·数据可视化·大屏端
码农郁郁久居人下43 分钟前
Linux:文件系统与日志分析
linux·运维·服务器
你疯了抱抱我1 小时前
【CentOS7.6】yum 报错:Could not retrieve mirrorlist http://mirrorlist.centos.org
linux·centos·yum
-无-为-3 小时前
科普文:Linux服务器性能调优概叙
linux·运维·服务器
梅孔立3 小时前
linux 默认 python 2.7 版本没有pip安装教程
linux·python·pip
你可以自己看3 小时前
深入解析Linux的使用(上)
linux·运维·服务器
峰上踏雪3 小时前
\r:回车符 与 \n:换行符
linux·运维·c++
程序边界3 小时前
云数据中心运维新纪元:让Linux服务器如虎添翼
linux·运维·服务器
笨笨小乌龟114 小时前
Linux Shell 脚本入门教程:开启你的自动化之旅
linux·物联网·自动化