在ubuntu下自己用户目录下创建.vimrc文件,添加下面内容:
set nocompatible
set columns=80
set tabstop=4
set ruler
set noexpandtab
set number
set ignorecase
set wrapmargin=15
set cindent
set shiftwidth=4
set hls
syntax on
set tags+=tags
set autochdir