VIM configuration

Detect installed vim

rpm
-qa | grep vi< span style="color: #000000; font-size: 16px;"> Install vim yum -y install vim-enhanced
Replace with vim
vi
vi ~/.bashrc #Need to restart or use source to refresh
//Add content
alias vi=vim
Set line number and indent
vi /etc/vimrc
set number
set tabstop
=4 //The number of spaces used by the tab key
Set the cursor and line highlighting
set gcr
=nvc:ver25-Cursor/lCursor,ve:ver35-Cursor,o:hor50-Cursor,i-ci:ver25-Cursor/lCursor
//Line highlighting
set cursorline
highlight CursorLine cterm
=NONE ctermbg=black ctermfg=green guibg=NONE guifg=NONE
//bracket matching
highlight MatchParen cterm=NONE ctermbg=black ctermfg=red guibg=NONE guifg=NONE

Detect installed vim

rpm
-qa | grep vi< span style="color: #000000; font-size: 16px;"> Install vim yum -y install vim-enhanced
Replace with vim
vi
vi ~/.bashrc #Need to restart or use source to refresh
//Add content
alias vi=vim
Set line number and indent
vi /etc/vimrc
set number
set tabstop
=4 //The number of spaces used by the tab key
Set the cursor and line highlighting
set gcr
=nvc:ver25-Cursor/lCursor,ve:ver35-Cursor,o:hor50-Cursor,i-ci:ver25-Cursor/lCursor
//Line highlighting
set cursorline
highlight CursorLine cterm
=NONE ctermbg=black ctermfg=green guibg=NONE guifg=NONE
//bracket matching
highlight MatchParen cterm=NONE ctermbg=black ctermfg=red guibg=NONE guifg=NONE

Leave a Comment

Your email address will not be published.