Path:/ETC/VIM/VIMRC
Open Terminal: ctrl+alt+t
Input: sudo vim or GEDIT/ETC/VIM/VIMRC (recommended with gedit for better operation)
Here is my configuration:
1 "My configuration2 "Show Line Numbers3 SetNu4 Set Number5 "Change Indent size6 Settabstop=27 "Color Theme8 Color Koehler9 "Show RulerTen SetRuler One "Go empty line ANnoremap <F2>:g/^\s*$/d<cr> - "activating the mouse - SetMouse=a the "new Label -Map <M-F2>:tabnew<cr> - "list current directory files -Map <F3>: Tabnew .<cr> + "Open the tree file directory -Map <C-F3>\be + "C,c++ Press F5 to compile and run AMap <F5>: Call COMPILERUNGCC () <CR> atfunc!COMPILERUNGCC () -Exec"W" - if&filetype = ='C' -Exec"!g++%-O%<" -Exec"! ./%<" -ElseIf &filetype = ='CPP' inExec"!g++%-O%<" -Exec"! ./%<" toElseIf &filetype = ='Java' +Exec"!javac%" -Exec"!java%<" theElseIf &filetype = ='SH' *:!. /% $ endifPanax Notoginseng Endfunc - "commissioning of the c,c++ theMap <F8>: Call Rungdb () <CR> +func!rungdb () AExec"W" theExec"!g++%-g-o%<" +Exec"!gdb ./%<" - Endfunc $ "Auto Indent $ Setautoindent - Setcindent - "Unified Indentation is 4 the Setsofttabstop=2 - SetShiftwidth=2
Noi-linux Vim's personal common configuration (Ubuntu16.04)