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

相关推荐
TC139826 分钟前
服务器Ubuntu22.04 server 安装gnome GUI+VNC远程配置
linux·服务器·远程工作
Hacker_Oldv1 小时前
网络安全linux命令
linux·网络·web安全
路由侠内网穿透4 小时前
本地部署资源聚合搜索神器 Jackett 并实现外部访问
linux·运维·服务器·网络协议·tcp/ip
djykkkkkk5 小时前
ubuntu 和 RV1126 交叉编译Mosqutiio-1.6.9
linux·运维·ubuntu
CN-Dust5 小时前
VsCode导入时选择相对路径
ide·vscode·编辑器
好多知识都想学6 小时前
第二章Linux 命令概述
linux·运维·服务器
熊峰峰6 小时前
Linux第0节:Linux环境的搭建
linux·运维·服务器
鸭梨山大。6 小时前
linux命令-iptables与firewalld 命令详解
linux·运维·网络
半夏知半秋6 小时前
linux下的网络抓包(tcpdump)介绍
linux·运维·服务器·网络·笔记·学习·tcpdump
深思慎考6 小时前
Linux——进程间通信初解(匿名管道与命名管道)
java·linux·服务器