[Ubuntu16.04]-Vim editor installation and configuration

  1. installation
 sudo apt-get -y install vim
  1. Configuration
sudo vim .vimrc

3. Content:

" 显示行号
set nu
" 语法高亮
syntax enable
syntax on
" tab键长度
set tabstop=4
" 自动缩进
set autoindent
" 历史记录数
set history=1000

Guess you like

Origin blog.csdn.net/qq_42293496/article/details/108644994