UltiSnips和YouCompleteMe [英] UltiSnips and YouCompleteMe

查看:1159
本文介绍了UltiSnips和YouCompleteMe的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有捆绑ultisnips和youcompleteme安装在我的MacVim。
问题是,ultisnips不起作用,因为标签是由永约束。
我试图把让G:UltiSnipsExpandTrigger =< S-标签>,这样我就会触发移选项卡中的片断完成,但它并不适用于一些工作原因未知。我可以用瓶盖作为触发,但到目前为止,我发现没有办法做到这一点。

I have bundles ultisnips and youcompleteme installed on my macvim. The problem is that ultisnips doesn't work because tab is bound by ycm. I tried putting let g:UltiSnipsExpandTrigger = "<s-tab>" so that I can trigger the snippet completion with shift-tab, but it doesn't work for some unknown reason. I could use caps as the trigger, but so far I've found no way to do that.

做任何你使用这两个附加组件在一起吗?
我能做些什么,使移标签工作?
你能推荐的另一个键触发片段?

Do any of you use those two add-ons together? What can I do to make shift-tab work? Can you recommend another key to trigger snippets?

推荐答案

我有这个在我的vimrc

i have this in my vimrc

"" YouCompleteMe
let g:ycm_key_list_previous_completion=['<Up>']

"" Ultisnips
let g:UltiSnipsExpandTrigger="<c-tab>"
let g:UltiSnipsListSnippets="<c-s-tab>"

多数民众赞成我做了我的第一次尝试,但我拼错UltiSnips与Ultisnips ..哦,最终制定出!

thats what i did on my first try, but i misspelled UltiSnips with Ultisnips.. oh well, worked out in the end!

这篇关于UltiSnips和YouCompleteMe的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆