Configuring the VIM Environment

Source: Internet
Author: User

<1>

It is generally not recommended to change/ETC/VIMRC This file because this file change takes effect for all users,

So generally only change the current user that changes the file Vim ~/.VIMRC (. indicates hidden files)

<2>

The comments in the file are ", from" start to end of line are comment content

<3>

Set Nu ' displays line number (set Nonu does not show line number)

Set Hlsearch keyword anti-white when searching

Set backspace=2 "Allow backspace key to delete

Set aotuindent "Typesetting auto Indent

Set Showmode "show lower left state line (current state mode)

Set ruler "Display the lower right corner status line (row and column information)

Set Bg=dark "Sets the background color to be a dark color

Set Mouse=a "Allow mouse to move cursor

Set tabstop=4 "Setting tab width

Set Softtabstop "Setting Softtab width

Syntax on "Turn on syntax highlighting

ColorScheme Highlight scheme name can be used to set the highlighting scheme Molokai wombat solarized Blackboard Desert

"Set parentheses auto-complete

Inoremap (() <esc>i

Inoremap [[]<esc>i

Inoremap {{}<esc>i

Inoremap "" "<esc>i

Inoremap ' <esc>i

  

Configuring the VIM Environment

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.