Analysis of configuration files in the ubantuVIM Editor

Source: Internet
Author: User

Analysis of configuration files in the ubantuVIM editor I ,. the powerful personalized customization of vimrc configuration file vim depends on its configuration file and plug-in mechanism. The configuration file is the basis for ensuring the efficient use of plug-ins, so it is very important. The vim configuration file is usually. vimrc, which is placed in the user's $ HOME directory, can be very simple, or even not (use the default), it can be very complicated, hundreds of rows of settings, dazzling. Next I will first post my. vimrc file: The following is a simple vimrc configuration file. If you are interested, view the configuration of the vimrc file for details: 01 set nu "display 02 set ts = 4" set tabstop, that is, the number of spaces occupied by the tab key, help tabstop 03 set sw = 4 "sets shiftwidth, that is,> How many spaces are moved at a time ,: help shiftwidth 04 set cindent "C language smart indent 05 set textwidth = 80" set a line of character width 06 set comments = sl:/*, mb: **, elx: * "Automatically complete annotation symbol 07 filetype plugin indent on" Enable Automatic file type detection 08 set completeopt = longest, menu "set word auto-completion option 09 set autoindent" set auto-indent 10 set encoding = UTF-8 fileencodings = ucs-bom, UTF-8, cp936 "set encoding, only the correct encoding can display the Chinese 11 set OFDM = indent "set the folding mode to automatically fold according to the indentation.: help OFDM 12 set hlsearch" highlight the search words when setting the search ,: help hlsearch 13 set history = 1000 // save 1000 rows of history; 14 set smartindent // smart indent; 15 setfilecncodings = UTF-8, ucs-bom, cp936, gbk, gb18030, shift-jis // set the encoding type of the opened file to prevent Chinese garbled characters. 16 set confirm // when processing unsaved or read-only files, a confirmation is displayed; 17 set showmatch // highlight matching characters;
 

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.