编辑vimrc文件:

sudo vim /usr/share/vim/vimrc

添加如下内容:

syntax enable
set background=dark
colorscheme solarized

set number
set ruler
set numberwidth=1

set autoindent
set cindent

set tabstop=4
set softtabstop=4
set expandtab
set smarttab
set shiftwidth=4

set enc=utf-8
set fileencoding=utf-8

保存并退出。

2015-03-12 21:518