Ubuntu System VIMRC configuration file

Source: Internet
Author: User
Keywords Ubuntu vimrc
Tags compile configuration debug file filetype plugin press run

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.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.