2014-11-03 78 views
0

我使用Jedi-vim进行vim python自动完成,效果很好。它具有按需显示预览/文档功能的快捷方式。Vim omnicomplete按需打开文档

我现在正在C++项目上工作,我试图使用原来的omnicomplete + ctag来完成同样的事情。但是我找不到类似于Jedi-vim的函数。

我不想一直显示预览窗口做“:set completeopt + = preview”,我不想使用像“YouCompleteMe”这样的巨大的自动完成插件,我只是想打开/跳转按需预览。有什么办法可以做到吗?提前致谢!

回答

0

我想你会发现:help preview-window有趣。

" shows the definition of foo in the preview window 
:ptag foo 

" shows the definition of the symbol under the cursor in the preview window 
<C-w>} 

你需要用指数的ctags或该功能的工作的一些兼容的程序项目,虽然。

" doesn't need ctags 
:psearch foo