VIM configuration, storage, useful

Source: Internet
Author: User

New to the MBP high with a week, good to tears, thanks to mommy first ...

======================================

======================================

So, let's put the VI configuration first ...

======================================

It was readonly to use sudo for the VIMRC file, but it was a------->

Looked at a lot of information only to find that the Mac comes with the VIMRC can not change their own, you have to create a root directory ...

CD ~

Touch. VIMRC <--------change in this file ...

============ is the setup file. ===============

SYN on "syntax supports set laststatus=2" always displays the status bar set tabstop=2 "a tab length set softtabstop=2" a tab length (can be greater than TabStop) set shiftwidth=2 " An indented length set Expandtab "Use spaces instead of tab set SMARTTAB" Smart tab set autoindent "Auto indent set Smartindent" can only indent set number "show line numbers set ruler" Display location Indicator set BACKUPDIR=/TMP "Set backup file directory set directory=/tmp" Set temporary file directory set ignorecase "Ignore case when retrieving" set HLS "when retrieving highlight match set HELPLANG=CN" Help system set to Chinese set foldmethod=syntax "code folding


VIM configuration, storage, useful

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.