Linux Vi editor use

  
                  

First, vi highlighting under centOS

First, vim has the syntax highlighting function, the configuration file is in /etc/vim/vimrc 1, vi is automatically converted to vim /etc/profile last plus On alias vi='vim'

2, syntax highlight vi /etc/vim/vimrc

View

syntax on

is open < Br>

3, plus environment variable settings

vi /etc/profile environment variable settings section plus export TERM=xterm-color

4, restart the server

Copyright © Windows knowledge All Rights Reserved