Configuring the programming Environment: sudo apt-get install vim
sudo apt-get install g++
sudo apt-get install gdb
VIM environment configuration: Set nocompatible "Vim than VI supports more features, in order to avoid conflicts, it is best to turn off compatibility
Set Encoding=utf-8 "Using UHF-8 encoding format
Set showcmd "Show input command
Set Clipboard=unnamed,unnamedplus "can be copied from vim to the Clipboard
Set Nu "Show when forward
Set tabstop=4 "Setting tab length is 4
Set Nobackup "Overwrite file without backup
Set Cursorline "highlight when moving forward
Set ruler the status line (line and column number) in the lower-right corner of the cursor position
Set autoindent "Auto Indent
Set Hlsearch "Show highlighted search
Set history=100 "instruction record
Set Background=dark "Sets the background color, there are two, dark and light, Dark is a dark mode
Set Background=light "Sets the background color to light mode
Syntax on "Show syntax highlighting
Syntax enable "Display syntax highlighting, same as syntax on
Vim's configuration environment in file VIMRC
command to enter the VIMRC file as "read-only": VIM/ETC/VIM/VIMRC
If you want to write to the VIMRC file, you must use the sudo command: sudo vim/etc/vim/vimrc
ubuntu16.04 C Programming Environment Configuration and vim basic configuration