圆圆的世界CSDN 2019-10-22
检测已经安装的vim rpm -qa | grep vi 安装vim yum -y install vim-enhanced 用vim 替换 vi vi ~/.bashrc #需要重启 或者使用source进行刷新 //添加内容 alias vi=vim 设置行号与缩进 vi /etc/vimrc set number set tabstop=4 //tab键使用的空格数量 设置光标和行高亮 set gcr=n-v-c:ver25-Cursor/lCursor,ve:ver35-Cursor,o:hor50-Cursor,i-ci:ver25-Cursor/lCursor //行高亮 set cursorline highlight CursorLine cterm=NONE ctermbg=black ctermfg=green guibg=NONE guifg=NONE //括号匹配 highlight MatchParen cterm=NONE ctermbg=black ctermfg=red guibg=NONE guifg=NONE
" \ \ / /_ | / | _ \ / | / / _ | \ | | | / |. " \ \ / / | || |/| | |) | | | | | | | | | | | | | | _.