ubuntu16.04 C Programming Environment Configuration and vim basic configuration

Source: Internet
Author: User
Tags set background

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

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.