cd ~ touch .vimrc vim .vimrc
"显示行号 set nu "语法高亮 syntax on "鼠标可用 set mouse=a "tab缩进 set tabstop=4 set shiftwidth=4 set expandtab set smarttab "c文件自动缩进 set cindent "智能缩进 set smartindent "自动对齐 set autoindent