【Ubuntu】[VIM]:vim 的配置单

set nu  "显示行号
 set guifont=MONACO  "设置字体
 syntax on   "设置语法高亮
 set novisualbell    "不要闪烁
 set helplang=cn
 set encoding=utf-8
  "设定中文帮助
  set fileencoding=utf-8
  set cursorline  "突出显示当前行
"set autoindent "自动缩进
 set smartindent "基于autoindent的一些改进后的自动缩进
 filetype indent plugin on   "依据文件类型设置自动缩进
 set tabstop=4   "table键长度
 set background=dark "如果终端使用的是神色背景,为深色背景调整配色
 set shiftwidth=4    "设定自动缩进宽度为4
 set showmode
 set incsearch      

转载于:http://zhidao.baidu.com/question/549507487.html
我用的是Ubuntu 13.10 配置单的位置:/etc/vim/vimrc。
$sudo vi /etc/vim/vimrc

你可能感兴趣的:(ubuntu,vim)