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

相关推荐
Wy_编程1 小时前
Linux-文本搜索工具grep
linux·运维·服务器
xujiangyan_1 小时前
linux的sysctl系统以及systemd系统。
linux·服务器·网络
Lovyk1 小时前
Linux Shell 常用操作与脚本示例详解
linux·运维·服务器
yuanpan5 小时前
ubuntu系统上的conda虚拟环境导出方便下次安装
linux·ubuntu·conda
AOwhisky6 小时前
Linux 文本处理三剑客:awk、grep、sed 完全指南
linux·运维·服务器·网络·云计算·运维开发
Gavin_9156 小时前
从零开始部署经典开源项目管理系统最新版redmine6-Linux Debian12
linux·ruby on rails·开源·debian·ruby·redmine
花小璇学linux7 小时前
imx6ull-驱动开发篇31——Linux异步通知
linux·驱动开发·嵌入式软件
shelutai7 小时前
ubuntu 编译ffmpeg6.1 增加drawtext,libx264,libx265等
linux·ubuntu·ffmpeg
runfarther7 小时前
搭建LLaMA-Factory环境
linux·运维·服务器·python·自然语言处理·ai编程·llama-factory
hello_ world.8 小时前
RHCA10NUMA
linux