Since ubuntu16.04 has been able to open files directly with VIM, it is not necessary to use Gvim, Vim appears more lightweight.
Installation of Vim:
sudo apt-get install vim
sudo apt-get install Vim-gnome
Configuration of Vim:
1. Under/home, Ctrl + H shows hidden files, new files. Vim can be configured with VIMRC.
SetAISetAWSetarSetsiSetSCSetSMSetCinSetHLSSetgo=0Setbs=2Setls=2Setso=3Setmat=3Setts=4Setsw=4STASetMouse=aSetshm=AtISetList lcs=tab:\ \Setcb+=Unnamedautocmd Bufenter* CD%:p: H syntax enablefiletype onfiletype plugin onfunc!run_cpp () exec"w!"exec"!clear && g++%<.cpp-o%<-G && ./%<"Endfunctionmap<F9>: Call Run_cpp () <cr>Map<space>h <C-w>Hmap<space>j <C-w>Jmap<space>k <C-w>Kmap<space>l <C-w>Lmap<space>[<c-w>-Map<space>] <c-w>+Map<space>, <C-w><Map<space>. <C-w>>Map<space><space>[8<c-w>-Map<space><space>]8<c-w>+Map<space><space>, -<C-w><Map<space><space>. -<C-w>>Map<space>w:wall<cr>Map<space>q:wqall<cr>
My. VIMRC
Ps:autocmd bufenter * CD%:p: H is the folder where the directory is transferred to the current file, there is a bug that the path cannot have spaces
The 2.vim is terminal-based, so the background/font/color can be modified in the terminal-edit-profile preferences.
The effects I configured are as follows.
Installation and configuration of Vim under Ubuntu