Ubuntu 14.04 vim 的配置

1 安装 vim

2 编辑/etc/vim/vimrc 配置文件

在文件最后加入:

set nu                           "在左侧行号

set tabstop                  "tab 长度设置为 4

set nobackup               "覆盖文件时不备份

set cursorline               "突出显示当前行

set ruler                       "在右下角显示光标位置的状态行

set autoindent             "自动缩进

filetype plugin indent on "开启插件

set hlsearch "搜索时高亮显示被找到的文本

set smartindent " 开启新行时使用智能自动缩进

你可能感兴趣的:(vim)