Vim configuration and Automatic completion plug-in neocomplcache

Source: Internet
Author: User
Tags keyword list

Today, I wrote QT and suddenly wanted to use Vim's automatic complementing function. Google decided to use neocomplcache. It has the advantages of caching, high auto-completion timeliness, and accurate keyword list generated. It can be found on the official website
Download, as of today () the latest version of neocomplcache-5.3.vba.

Use method: Open the neocomplcache-5.3.vba with vim. Then execute

: So %

Finally, enable it in vim and add the following in. vimrc:

Let G: neocomplcache_enable_at_startup = 1

Restart vim.

Laizhang:

Finally, paste my. vimrc to your note:

Let G: neocomplcache_enable_at_startup = 1 <br/> set guioptions-= T <br/> set guioptions + = r <br/> set guioptions-= L <br/> set guioptions + = m <br/> set wrap <br/> set completeopt = longest, menu <br/> highlight statusline guifg = slateblue guibg = white <br/> highlight statuslinenc guifg = gray guibg = white <br/> filetype on <br/> set guifont = Monaco/ 10 <br/> set nocompatible <br/> set bsdir = buffer <br/> set autochdir <br/> set ENC = UTF-8 <br/> set fenc = UTF-8 <br/> set fencs = UTF-8, ucs-bom, gb18030, GBK, gb2312, cp936 <br/> set langmenu = zh_CN.UTF-8 <br/> source $ vimruntime/delmenu. vim <br/> source $ vimruntime/menu. vim <br/> set SYN = CPP <br/> set Nu! <Br/> set iskeyword + =_, $, @, % ,#, -<br/> set shortmess = ATI <br/> au vimenter * Set VB t_vb = <br/> set noerrorbells <br/> set novisualbell <br/> set fillchars = vert: /, STL:/, stlnc: /<br/> setlocal noswapfile <br/> set nobackup <br/> set hlsearch <br/> set tabstop = 4 <br/> set cindent shiftwidth = 4 <br/> set autoindent shiftwidth = 4 <br/> set comments =: // <br/> set comments = S1:/*, MB: *, ex0:/<br/> set tags =. /tags ,. /.. /tags ,. /**/tags <br/> set fileformats = UNIX, DOS <br/> Map <up> GK <br/> Map <down> GJ <br/> set partition height = 1 <br/> If version> 603 <br/> set helplang = cn <br/> endif <br/>

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.