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

相关推荐
行止62 小时前
OpenStack云平台管理
linux·openstack
岁岁岁平安3 小时前
CentOS-7-x86_64解决:使用NAT模式无法ping通www.baidu.com或无法ping 8.8.8.8问题。
linux·运维·centos·centos-7
运维小贺3 小时前
各服务器厂商调整BIOS睿频教程
linux·运维·服务器·性能优化
特种加菲猫3 小时前
指尖上的魔法:优雅高效的Linux命令手册
linux·笔记
★Orange★4 小时前
Linux Kernel kfifo 实现和巧妙设计
linux·运维·算法
bemyrunningdog4 小时前
Mock数据
linux·运维·ubuntu
是阿建吖!4 小时前
【Linux | 网络】网络编程套接字
linux·网络
退役小学生呀4 小时前
十、K8s集群资源合理化分配
linux·云原生·容器·kubernetes·k8s
不知所云,5 小时前
3. lvgl 9.3 vscode 模拟环境搭建 lv_port_pc_vscode-release-v9.3
ide·vscode·编辑器·c·sdl·lvgl vscode·lvgl模拟器
Winner13005 小时前
Debian、Buildroot 和 Ubuntu 都是基于 Linux 的系统区别
linux·ubuntu·debian