Press F5 to compile and debug c++++ programs, compile and run C + + programs by F6
Detailed configuration is as follows:
Set nocompatible
Set number
Set wrap!
FileType on
Set history=50
FileType plugin on
"Set Background=dark
ColorScheme Pablo
Syntax on
Set Cursorline
Set Autoindent
Set Smartindent
Set tabstop=4
Set shiftwidth=4
Set softtabstop=4
Set Noexpandtab
Set Smarttab
Set ShowCmd
Set Showmode
Set Showmatch
Set VB t_vb=
Set ruler
Set HLS
Set Incsearch
Set CIN
Set Mouse=a
Set Cindent
Set SM
Set AI
"g+++ Compiler
Map <F5>: Call Compilerungplusplus () <CR>
func! Compilerungplusplus ()
Exec "W"
Exec "!g++%-g-o%<"
EXEC "! ./%<"
Endfunc
Map <F6>: Call http://www.aliyun.com/zixun/aggregation/10818.html ">debuggplusplus () <CR>
fun! Debuggplusplus ()
Exec "!g++%-g-o%<"
EXEC "! GDB%< "
Endfun
If you're not used to saying black!
You can click "Edit"-> "Current Profile"-> "Color" in the menu of the terminal
And then you can change it.