我使用Jedi-vim实现vim python自动完成,效果很好。它具有按需显示函数预览/文档的快捷方式。
我现在正在从事C++项目的工作,我正在尝试使用原始的omnicomplete+ctag来完成同样的事情。但我找不到类似于Jedi-vim的功能。
我不想通过执行":set completeopt+=preview“来一直显示预览窗口,我也不想使用像"YouCompleteMe”这样的大型自动补全插件,我只想打开/跳转到按需预览。有没有办法做到这一点?提前感谢!
发布于 2014-11-03 16:58:39
我想你会发现: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>}不过,您需要使用ctag或一些兼容的程序来索引您的项目,才能使该功能正常工作。
" doesn't need ctags
:psearch foohttps://stackoverflow.com/questions/26707106
复制相似问题