<p>我希望使用omnicomplete而不是自己编写每个变量。很快,我要做一个混乱的项目,所以我需要一些帮助来寻找变量。。。我试图使用omnicomplete,但它不起作用:</p>
<p>您将在下面找到一些软件信息:</p>
<p>VIM:7.3.429-2ubuntu2.1
旺盛的ctag:5.9</p>
<p>我的vimrc:</p>
<pre><code>set background=dark
set expandtab
set tabstop=4
set ai
au BufWinEnter * let w:m1=matchadd('ErrorMsg', '\%>80v.\+', -1)
highlight Space ctermbg=darkblue guibg=darkblue
highlight Tab ctermbg=darkgray guibg=darkgray
au BufWinEnter * let w:m2=matchadd('Tab', '\t', -1)
au BufWinEnter * let w:m3=matchadd('Space', '\s\+$\| \+\ze\t', -1)
map <F4> :TlistToggle<cr>
filetype plugin on
set omnifunc=syntaxcomplete#Complete
</code></pre>
<p>当我打开一个文件时,我输入以下内容:</p>
<p>:set tags=/mypath/myfile</p>
<p>但当我想要自动完成时,它不起作用:</p>
<p>自我。
在</p>
<p>不显示变量名而只显示函数名?
当我使用TagLisst时,我也只看到函数。如果我读我的标签文件,我可以找到我的变量。。在</p>
<p>所以,如果我想使用omnicomplete来完成python脚本中的变量,我该怎么做呢?在</p>
<p>谢谢。:)</p>