其他分享
首页 > 其他分享> > 蒟蒻的Vim配置

蒟蒻的Vim配置

作者:互联网

set t_Co=256 "启用256色
set number "启用行号
set tabstop=4  "Tab显示行数
syntax on "代码高亮(好像不用开)
color ron "粉嫩的主题
set ruler "尺子
set mouse=a "启用鼠标
"自动缩进三选一
"set autoindent 与上一行相同的自动缩进
"set smartindent 不知所云的自动缩进
set cindent "C风格的自动换行
"set expandtab "tab自动转空格
set softtabstop=4 "tab转为多少个空格
set shiftwidth=4 "自动缩进时的tab大小
set nowrap "禁止自动折行
set hlsearch "搜索高亮
set noerrorbells "禁止提示音
inoremap ' ''<ESC>i
inoremap ( ()<ESC>i
inoremap [ []<ESC>i
inoremap " ""<ESC>i
inoremap { {}<ESC>i
map <F7>  :r ~/Code/formwork/start.cpp<CR>
map <F8> <ESC> :w <CR> :!g++ -g -Wall % -o %< <CR>
map <F9> <ESC> :w <CR> :!g++ -g -Wall % -o %< && ./%< <CR>
map <F6> <ESC> :w <CR> :!g++ -g -Wall % -o %< && ./%< < %<.in <CR>
map <F5> <ESC> :!gdb %< <CR>

标签:map,缩进,set,配置,Vim,自动,tab,inoremap
来源: https://www.cnblogs.com/oiertkj/p/11218293.html