Vim simple configuration

Source: Internet
Author: User

Vim simple configuration

Vim is a text editor that is powerful enough to have no friends. Friends who often use vim for editing must have a deep understanding. Below are some simple Vim configurations.

(1) vim ~ /. Vimrc
Edit the following content, save and exit.
(Note: OS X/Ubuntu/CentOS/RedHat testing is available)

Set hlsealch // highlighted reversed
Set backspace = 2 // you can use the backspace key to delete it at any time.
Set autoindent // automatically scale down
Set ruler // display the status of the last row
Set showmode // The status of the row is displayed in the lower left corner.
Set nu // display the row number
Set bg = dark // display different background colors
Set mouse = a // mouse available
Syntax on // syntax check, Color Display

Configuration diagram:

I found a BUG. You can try it out. The environment is the CSDN markdown editor.

After you press set hlsearch, the Space key is immediately changed to: set hlseyrch. Have you noticed that a letter has changed. So someone asked how you typed set hlsearch. Can I use the Tab key!

Two sheets:

For more Vim tutorials, see the following:

Build VIM into a simple and practical IDE

Vim Learning Guide

Quick learn Vi Editor

Powerful Vim Editor

Build a Vim Development Environment on CentOS 6.2

Install the highlighted Vim editing tool in CentOS 5.4

Vim tips: C language settings

Set the Vim row number in Ubuntu

Vim editor basic tutorial

This article permanently updates the link address:

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.