How to turn on vim syntax highlighting and displaying line numbers in Mac OS X

Source: Internet
Author: User
Tags line editor

VIM (Wikipedia map) Vim is a fairly powerful command-line editor that originates from UNIX platforms, but it's not a good thing that Mac OS X does not have a lot of Linux distributions on top of Vim's awesome horse code highlighting AH, automatic indentation ah god horse. (Translator Note: The Linux distribution can usually be changed by editing the/ETC/VIMRC file to change the global vim settings or personalized for a user's ~/.VIMRC) in order to compensate for this shortcoming, please do as follows: Open terminal, Enter the following command:

Cd/usr/share/vimsudo Vim VIMRC

After two lines of command, VIM will appear in the set backspace=2 this line (VIM operation does not repeat, want to make this modification will certainly make VIM) as follows configuration

Set AI                  "Auto indentingset history=100         " keep lines of Historyset ruler               "show the cursor positionsyntax o n               "syntax highlightingset hlsearch            " highlight the last searched Termfiletype plugin on      "Use the file type P Luginsset number

How to turn on vim syntax highlighting and displaying line numbers in Mac OS X

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.