vi .profile
-----------------
alias ls=‘ls -F‘
alias cls=‘clear‘
alias grep=‘grep --color=auto‘
CLICOLOR="xterm-color"
LSCOLORS="gxfxcxdxcxegedabagacad"
export CLICOLOR LsCOLORS
vi .vimrc
-----------------
syntax on
原文:http://ninjaxena.blog.51cto.com/6047664/1427173