cd ~ vim .vimrc 加入下面两句来设置颜色 colorscheme desert syntax on 加入下面一句来设置缩进为4个格 :set ts=4 加上下面一句来设置行号 :set nu