1.查看VIM的版本
vim --version | grep VIM
2.基本配置
vim ~/.vimrc
set nocompatible "Turn off compatibility mode with Vi
set number "Show Line Numbers
set nowrap "No automatic folding
set showmatch "Display matching parentheses
set encoding=utf-8
set fenc=utf-8
set mouse=a "To enable the mouse
set hlsearch "Search highlight
syntax enable "Syntax highlighting
set tabstop=4 "TAB equivalent space length
set softtabstop=4
set expandtab
set autoindent "Automatic indentation