更改_vim.rc文件,添加代码段如下,此配置主要用于方便写Verilog代码(未完待续)
"-----------自定义设置-----------
"ui界面设置
set number "设置行号
colors lucius "设置颜色lucius
syntax enable "允许语法
syntax on "语法高亮
set vb t_vb=
au GuiEnter * set t_vb= "禁用错误音
set shortmess=atI "禁用开始界面
set fileencodings=utf-8,gbk,big5 "防止中文乱码
winpos 1000 10
set lines=50 columns=60 "窗口打开位置设置
"缩进与空格设置
set smarttab
set tabstop=4
set shiftwidth=4
set noexpandtab
set autoindent
"--------映射--------"
"( 括号自动补齐
:inoremap ( ()<Esc>i
"< 非阻塞赋值
:inoremap < <=
"shift+enter 跳转下一行并创建空行
:inoremap <s-cr> <Esc>o
"ctrl+tab 自动补齐
:inoremap <c-tab> <c-p>
"文件设置
set nobackup "取消~文件
set noundofile "取消un~文件
set noswapfile "关闭swp文件
set filetype=verilog
注:colors lucius需要在vim官网下载lucius皮肤包