debian下终端的彩色和vi的彩色

终端下的彩色:
#su
#cd ~
#vi .bashrc
把# You may uncomment the following lines if you want `ls’ to be colorized:这行以后的注释都去掉,保存,重登录,完毕。
# You may uncomment the following lines if you want `ls’ to be colorized:
export LS_OPTIONS=’–color=auto’
eval "`dircolors`"
alias ls=’ls $LS_OPTIONS’
alias ll=’ls $LS_OPTIONS -l’
alias l=’ls $LS_OPTIONS -lA’

vi的彩色:
安装vim就行
#apt-get install vim
安装完成后,
#vi /etc/vim/vimrc
找到
"syntax on
把前面的"去掉,wq,完成
原创内容,转载请注明来自wuhongsheng.com