【脚本篇】---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文件如下所示:

相关推荐
kaoa0006 小时前
Linux入门攻坚——84、网络虚拟化技术-1
linux·运维·服务器
RisunJan6 小时前
Linux命令-shutdown(安全关闭或重启系统)
linux·服务器·安全
2601_965798477 小时前
MTDb Movie & TV Database Script Setup, Caching, and SEO Guide
linux·服务器·数据库·php
NoteStream7 小时前
【c语言基础】C语言常见概念
c语言·开发语言·编辑器
我头发多我先学7 小时前
linux系统编程:初识进程
linux·运维·服务器
Freak嵌入式7 小时前
版本混乱 / 依赖缺失?uPyPi:MicroPython 版 PyPI,彻底解决库管理混乱
linux·服务器·数据库·单片机·嵌入式硬件·性能优化·依赖倒置原则
苍狗T8 小时前
LVS相关知识总结
linux·运维·服务器·lvs
lightqjx9 小时前
【Linux系统】基础 IO
linux·c语言·重定向·缓冲区·文件io·文件的系统调用
我星期八休息9 小时前
扩展— TCP 全连接队列与 tcpdump 抓包
linux·服务器·开发语言·前端·网络·tcp/ip·tcpdump
RisunJan9 小时前
Linux命令-skill(发送信号给进程)
linux·运维·服务器