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/>